UNPKG

328 BTypeScriptView Raw
1export interface Debouncer {
2 debounce(callback: Function): void;
3 cancel(): void;
4}
5export declare class TimeoutDebouncer implements Debouncer {
6 wait: number;
7 private timer;
8 callback: Function;
9 constructor(wait: number);
10 debounce(callback: Function): void;
11 schedule(): void;
12 cancel(): void;
13}