mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Create definition for just-throttle * Use more specific URL for the project * Improve comments in tests slightly
11 lines
495 B
TypeScript
11 lines
495 B
TypeScript
// Type definitions for just-throttle 1.1
|
|
// Project: https://github.com/angus-c/just/tree/master/packages/function-throttle
|
|
// Definitions by: Dominik Rowicki <https://github.com/papermana>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.0
|
|
|
|
declare function throttle(fn: (...args: unknown[]) => unknown, interval: number, callFirst?: false): () => void;
|
|
declare function throttle<T>(fn: T, interval: number, callFirst?: true): T;
|
|
|
|
export = throttle;
|