testchimp-js
Version:
TestChimp SDK for JS
28 lines (25 loc) • 799 B
TypeScript
// testchimp-js.d.ts
declare module 'testchimp-js' {
export interface TestChimpSDKConfig {
enableRecording?: boolean;
endpoint?: string;
projectId: string;
sessionRecordingApiKey: string;
samplingProbability?: number;
maxSessionDurationSecs?: number;
samplingProbabilityOnError?: number;
eventWindowToSaveOnError?: number;
tracedUriRegexListToTrack?: string;
untracedUriRegexListToTrack?: string;
excludedUriRegexList?: string[];
environment?: string;
enableLogging?: boolean;
enableOptionsCallTracking?: boolean;
}
export class TestChimpSDK {
static startRecording(options: TestChimpSDKConfig): void;
static endTrackedSession(): void;
static stopRecording(): void;
static setCurrentUserId(userId: string): void;
}
}