UNPKG

518 BTypeScriptView Raw
1// Type definitions for debounce 1.2
2// Project: https://github.com/component/debounce
3// Definitions by: Denis Sokolov <https://github.com/denis-sokolov>
4// Wayne Carson <https://github.com/wcarson>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
7declare namespace _debounce {
8 const debounce: typeof _debounce;
9}
10
11declare function _debounce<A extends Function>(f: A, interval?: number, immediate?: boolean): A & { clear(): void; }
12 & { flush(): void };
13
14export = _debounce;