UNPKG

angular2-data-table

Version:

angular2-data-table is a Angular2 component for presenting large and complex data.

29 lines (28 loc) 578 B
/** * 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; };