Skip to content

Commit 97d2f8f

Browse files
authored
Merge pull request #78 from mixpanel/fix-parameter-init
Fix the inconsistency typescript definition of init
2 parents 16f01a1 + b412eba commit 97d2f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ type MixpanelType = any;
22
type MixpanelProperties = { [key: string]: MixpanelType };
33

44
export class Mixpanel {
5-
static init(token: string, optInTracking?: boolean): Promise<Mixpanel>;
6-
init(optInTracking?: boolean): Promise<void>;
5+
static init(token: string, optOutTrackingDefault?: boolean): Promise<Mixpanel>;
6+
init(optOutTrackingDefault?: boolean): Promise<void>;
77
setServerURL(serverURL: string): void;
88
setLoggingEnabled(loggingEnabled: boolean): void;
99
setUseIpAddressForGeolocation(useIpAddressForGeolocation: boolean): void;

0 commit comments

Comments
 (0)