Installation
npm install --save @types/throttleit
Summary
This package contains type definitions for throttleit (https://github.com/component/throttle).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/throttleit.
index.d.ts
type AnyFunction = (...args: any[]) => any;
/**
* Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
*
* @param func Function to wrap.
* @param wait Number of milliseconds that must elapse between `func` invocations.
* @return A new function that wraps the `func` function passed in.
*/
declare function throttle<GFunction extends AnyFunction>(
fn: GFunction,
wait: number,
): GFunction;
export = throttle;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Ifiok Jr..