Skip to content

BlockSuite API Documentation / @blocksuite/blocks / TelemetryService

Interface: TelemetryService

Methods

track()

track<T>(eventName, props): void

Type Parameters

T extends keyof DatabaseAllSortEvents | "DatabaseSortClear" | "LinkedDocCreated" | "DocCreated" | "SplitNote" | "CanvasElementAdded"

Parameters

eventName: T

props: TelemetryEventMap[T]

Returns

void

Defined in

packages/affine/shared/dist/services/telemetry-service/telemetry-service.d.ts:10