@ryancavanaugh/debounce
Version:
Type definitions for compose-function from https://www.github.com/DefinitelyTyped/DefinitelyTyped
11 lines (8 loc) • 459 B
TypeScript
// Type definitions for compose-function
// Project: https://github.com/component/debounce
// Definitions by: Denis Sokolov <https://github.com/denis-sokolov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Overload on boolean constants would allow us to narrow further,
// but it is not implemented for TypeScript yet
declare function f<A extends Function>(f: A, interval?: number, immediate?: boolean): A
export default f;