delighted-loader
Version:
Async loader for the delighted api (browser, typescript)
25 lines (24 loc) • 591 B
TypeScript
declare type SurveyOptions = {
createdAt?: string;
darkBackground?: boolean;
email?: string;
forceDisplay?: boolean;
initialDelay?: number;
minTimeForDisplay?: number;
minTimeOnPage?: number;
name?: string;
onComment?: () => void;
onHide?: () => void;
onRespond?: () => void;
onShow?: () => void;
properties?: {
[key: string]: string;
};
recurringPeriod?: number;
};
export declare interface Delighted {
push: (data: any) => void;
survey: (options: SurveyOptions) => void;
SNIPPET_VERSION: string;
}
export {};