UNPKG

410 BTypeScriptView Raw
1/**
2 * Throttle a function
3 *
4 */
5export declare function throttle(func: any, wait: number, options?: any): () => any;
6/**
7 * Throttle decorator
8 *
9 * class MyClass {
10 * throttleable(10)
11 * myFn() { ... }
12 * }
13 */
14export declare function throttleable(duration: number, options?: any): (target: any, key: any, descriptor: any) => {
15 configurable: boolean;
16 enumerable: any;
17 get: () => any;
18};