lint
parent
c697079eb4
commit
7c62386915
|
@ -24,7 +24,7 @@ interface IEvent {
|
||||||
eventName: string;
|
eventName: string;
|
||||||
|
|
||||||
// The properties of the event that will be stored in PostHog.
|
// The properties of the event that will be stored in PostHog.
|
||||||
properties: {}
|
properties: {};
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum Anonymity {
|
export enum Anonymity {
|
||||||
|
@ -44,19 +44,19 @@ export interface IPseudonymousEvent extends IEvent {}
|
||||||
export interface IAnonymousEvent extends IEvent {}
|
export interface IAnonymousEvent extends IEvent {}
|
||||||
|
|
||||||
export interface IRoomEvent extends IPseudonymousEvent {
|
export interface IRoomEvent extends IPseudonymousEvent {
|
||||||
hashedRoomId: string
|
hashedRoomId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IPageView extends IAnonymousEvent {
|
interface IPageView extends IAnonymousEvent {
|
||||||
eventName: "$pageview",
|
eventName: "$pageview";
|
||||||
properties: {
|
properties: {
|
||||||
durationMs?: number
|
durationMs?: number;
|
||||||
screen?: string
|
screen?: string;
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IWelcomeScreenLoad extends IAnonymousEvent {
|
export interface IWelcomeScreenLoad extends IAnonymousEvent {
|
||||||
eventName: "welcome_screen_load",
|
eventName: "welcome_screen_load";
|
||||||
}
|
}
|
||||||
|
|
||||||
const hashHex = async (input: string): Promise<string> => {
|
const hashHex = async (input: string): Promise<string> => {
|
||||||
|
|
|
@ -20,24 +20,24 @@ class FakePosthog {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITestEvent extends IAnonymousEvent {
|
export interface ITestEvent extends IAnonymousEvent {
|
||||||
key: "jest_test_event",
|
key: "jest_test_event";
|
||||||
properties: {
|
properties: {
|
||||||
foo: string
|
foo: string;
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITestPseudonymousEvent extends IPseudonymousEvent {
|
export interface ITestPseudonymousEvent extends IPseudonymousEvent {
|
||||||
key: "jest_test_pseudo_event",
|
key: "jest_test_pseudo_event";
|
||||||
properties: {
|
properties: {
|
||||||
foo: string
|
foo: string;
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITestRoomEvent extends IRoomEvent {
|
export interface ITestRoomEvent extends IRoomEvent {
|
||||||
key: "jest_test_room_event",
|
key: "jest_test_room_event";
|
||||||
properties: {
|
properties: {
|
||||||
foo: string
|
foo: string;
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
describe("PosthogAnalytics", () => {
|
describe("PosthogAnalytics", () => {
|
||||||
|
|
Loading…
Reference in New Issue