UNPKG

861 BTypeScriptView Raw
1interface Analytics {
2 alias(args: {
3 previousId: string;
4 userId: string;
5 }): void;
6 group(args: {
7 groupId: string;
8 traits?: Record<string, unknown>;
9 }): void;
10 identify(args: {
11 userId: string;
12 traits?: Record<string, unknown>;
13 }): void;
14 page(args: {
15 name: string;
16 properties?: Record<string, unknown>;
17 }): void;
18 screen(args: {
19 name: string;
20 properties?: Record<string, unknown>;
21 }): void;
22 track(args: {
23 event: string;
24 properties?: Record<string, unknown>;
25 }): void;
26}
27/**
28 * Creates an analytics.js (window.analytics)-compatible stub.
29 */
30declare const createAnalyticsStub: (overrides?: Partial<Analytics> | undefined) => Analytics;
31export default createAnalyticsStub;
32//# sourceMappingURL=create_analytics_stub.d.ts.map
\No newline at end of file