UNPKG

survey-core

Version:

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

29 lines (28 loc) 740 B
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; };