survey-core
Version:
A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.
31 lines (30 loc) • 804 B
TypeScript
export interface IExecutable {
id?: string;
execute: () => void;
isCompleted: boolean;
dispose?: () => void;
}
export declare class Task implements IExecutable {
private func;
private isMultiple;
private _isCompleted;
constructor(func: () => void, isMultiple?: boolean);
execute: () => void;
discard(): void;
get isCompleted(): boolean;
}
export declare class TaskManger {
private interval;
private static instance;
private static tasks;
private constructor();
static Instance(): TaskManger;
private tick;
static schedule(task: IExecutable): void;
}
export declare function debounce<T extends (...args: any[]) => void>(func: T): {
run: T;
cancel: () => void;
getLastArguments: () => any[];
flushSync: () => void;
};