Last active
December 17, 2023 14:35
-
-
Save mustafadalga/9e464f3f782d689a6c1fe102a13ea146 to your computer and use it in GitHub Desktop.
Amplitude Type Declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare global { | |
interface AmplitudeInstance { | |
logEvent(eventName: string, eventProperties?: object): void; | |
identify(identifyObject: object): void; | |
setUserId(userId: string | null): void; | |
init(apiKey: string, userId?: string, options?: object, callback?: () => void): void; | |
} | |
interface Amplitude { | |
getInstance(): AmplitudeInstance; | |
} | |
var amplitude: Amplitude; | |
} | |
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
"include": [ | |
"amplitude.d.ts", | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment