@fullstory/react-native
Version:
The official FullStory React Native plugin
46 lines • 1.17 kB
TypeScript
interface UserVars {
displayName?: string;
email?: string;
[key: string]: any;
}
export type OnReadyResponse = {
replayStartUrl: string;
replayNowUrl: string;
sessionId: string;
};
export declare enum LogLevel {
Log = 0,
Debug = 1,
Info = 2,
Warn = 3,
Error = 4,
Assert = 5
}
export declare type FullstoryStatic = {
LogLevel: typeof LogLevel;
anonymize(): void;
identify(uid: string, userVars?: UserVars): void;
setUserVars(userVars: UserVars): void;
onReady(): Promise<OnReadyResponse>;
getCurrentSession(): Promise<string>;
getCurrentSessionURL(): Promise<string>;
consent(userConsents: boolean): void;
event(eventName: string, eventProperties: Object): void;
shutdown(): void;
restart(): void;
log(logLevel: LogLevel, message: string): void;
resetIdleTimer(): void;
};
declare global {
namespace JSX {
interface IntrinsicAttributes {
fsAttribute?: {
[key: string]: string;
};
fsClass?: string;
fsTagName?: string;
}
}
}
export {};
//# sourceMappingURL=fullstoryInterface.d.ts.map