@siemens/ngx-datatable
Version:
ngx-datatable is an Angular table grid component for presenting large and complex data.
18 lines (17 loc) • 443 B
TypeScript
/**
* Throttle a function
*/
export declare function throttle(func: any, wait: number, options?: any): (this: any) => any;
/**
* Throttle decorator
*
* class MyClass {
* throttleable(10)
* myFn() { ... }
* }
*/
export declare function throttleable(duration: number, options?: any): (target: any, key: PropertyKey, descriptor: PropertyDescriptor) => {
configurable: boolean;
enumerable: boolean;
get: () => any;
};