Skip to content

Instantly share code, notes, and snippets.

@mustafadalga
Last active December 17, 2023 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafadalga/9e464f3f782d689a6c1fe102a13ea146 to your computer and use it in GitHub Desktop.
Save mustafadalga/9e464f3f782d689a6c1fe102a13ea146 to your computer and use it in GitHub Desktop.
Amplitude Type Declaration
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 {};
"include": [
"amplitude.d.ts",
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment