mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
868 B
TypeScript
23 lines
868 B
TypeScript
// Type definitions for react-amplitude 0.1
|
|
// Project: https://github.com/rorygarand/react-amplitude
|
|
// Definitions by: Raymond Ho <https://github.com/rayzor65>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export interface AmplitudeInstance {
|
|
init(apiKey: string, userId?: string, config?: any, cb?: () => void): void;
|
|
amplitude(): void;
|
|
clearUserProperties(): void;
|
|
getSessionId(): void;
|
|
identify(idObj: any, cb: () => void): void;
|
|
isNewSession(): void;
|
|
logEvent(eventType: string, eventProperties: {}, cb: () => void): void;
|
|
logEventWithTimestamp(eventType: string, eventProperties: {}, timestamp: number, cb: () => void): void;
|
|
resetUserId(): void;
|
|
setUserId(userId: string): void;
|
|
setUserProperties(userProps: any): void;
|
|
}
|
|
|
|
declare const Amplitude: AmplitudeInstance;
|
|
|
|
export default Amplitude;
|