@posthog/wizard
Version:
The PostHog wizard helps you to configure your project
14 lines (13 loc) • 542 B
TypeScript
export declare class Analytics {
private client;
private tags;
private distinctId?;
private anonymousId;
constructor();
setDistinctId(distinctId: string): void;
setTag(key: string, value: string | boolean | number | null | undefined): void;
captureException(error: Error, properties?: Record<string, unknown>): void;
capture(eventName: string, properties?: Record<string, unknown>): void;
shutdown(status: 'success' | 'error' | 'cancelled'): Promise<void>;
}
export declare const analytics: Analytics;