mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
18 lines
580 B
TypeScript
18 lines
580 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
|
|
|
|
/**
|
|
* This is required as per:
|
|
* https://github.com/Microsoft/TypeScript/issues/5073
|
|
*/
|
|
namespace f {}
|
|
|
|
export = f;
|
|
} |