Skip to content

Commit b520861

Browse files
authored
Fix the type of eventDispatcher in ConstructorClientOptions (#373)
1 parent c280d29 commit b520861

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/types/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export interface IdOptions extends Record<string, any> {
3737
session_id_storage_location?: string;
3838
}
3939

40+
export interface EventDispatcherOptions {
41+
enabled?: boolean;
42+
waitForBeacon?: boolean;
43+
}
44+
4045
export interface ConstructorClientOptions {
4146
apiKey: string;
4247
version?: string;
@@ -53,7 +58,7 @@ export interface ConstructorClientOptions {
5358
trackingSendDelay?: number;
5459
sendTrackingEvents?: boolean;
5560
sendReferrerWithTrackingEvents?: boolean;
56-
eventDispatcher?: EventDispatcher;
61+
eventDispatcher?: EventDispatcherOptions;
5762
beaconMode?: boolean;
5863
networkParameters?: NetworkParameters;
5964
}

0 commit comments

Comments
 (0)