UNPKG

@types/debounce

Version:
38 lines (29 loc) 1.2 kB
# Installation > `npm install --save @types/debounce` # Summary This package contains type definitions for debounce (https://github.com/component/debounce). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debounce. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/debounce/index.d.ts) ````ts // Type definitions for debounce 1.2 // Project: https://github.com/component/debounce // Definitions by: Denis Sokolov <https://github.com/denis-sokolov> // 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; ```` ### Additional Details * Last updated: Fri, 22 Sep 2023 20:29:40 GMT * Dependencies: none * Global values: none # Credits These definitions were written by [Denis Sokolov](https://github.com/denis-sokolov), and [Wayne Carson](https://github.com/wcarson).