mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
588 B
TypeScript
16 lines
588 B
TypeScript
// Type definitions for debounce 1.2
|
|
// Project: https://github.com/component/debounce
|
|
// Definitions by: Denis Sokolov <https://github.com/denis-sokolov>
|
|
// Josh Goldberg <https://github.com/joshuakgoldberg>
|
|
// Wayne Carson <https://github.com/wcarson>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace _debounce {
|
|
const debounce: typeof _debounce;
|
|
}
|
|
|
|
declare function _debounce<A extends Function>(f: A, interval?: number, immediate?: boolean): A & { clear(): void; }
|
|
& { flush(): void };
|
|
|
|
export = _debounce;
|