Files
DefinitelyTyped/debounce/debounce.d.ts
Denis Sokolov 3a605075a6 Add debounce
2015-11-30 14:00:24 +02:00

12 lines
474 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
declare module "debounce" {
// Overload on boolean constants would allow us to narrow further,
// but it is not implemented for TypeScript yet
function f<A extends Function>(f: A, interval?: number, immediate?: boolean): A
export default f;
}