ngx-graph-new
Version:
Modify the ngx-chart version is used
29 lines (28 loc) • 616 B
TypeScript
/**
* Throttle a function
*
* @export
* @param {*} func
* @param {number} wait
* @param {*} [options]
* @returns
*/
export declare function throttle(func: any, wait: number, options?: any): () => any;
/**
* Throttle decorator
*
* class MyClass {
* throttleable(10)
* myFn() { ... }
* }
*
* @export
* @param {number} duration
* @param {*} [options]
* @returns
*/
export declare function throttleable(duration: number, options?: any): (target: any, key: any, descriptor: any) => {
configurable: boolean;
enumerable: any;
get: () => any;
};