diff --git a/packages/core/src/lib/telemetry.ts b/packages/core/src/lib/telemetry.ts index 4571bc12464..475a24c278f 100644 --- a/packages/core/src/lib/telemetry.ts +++ b/packages/core/src/lib/telemetry.ts @@ -203,6 +203,8 @@ function inform () { userConfig.set('telemetry', telemetry) } +async function sendEvent (eventType: 'project', eventData: Project): Promise +async function sendEvent (eventType: 'device', eventData: Device): Promise async function sendEvent (eventType: 'project' | 'device', eventData: Project | Device) { const endpoint = process.env.KEYSTONE_TELEMETRY_ENDPOINT || defaultTelemetryEndpoint const req = https.request(`${endpoint}/2/event/${eventType}`, {