@exadel/esl
Version:
Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components
6 lines (5 loc) • 359 B
TypeScript
/**
* Aggregate is a function decorator that limits decorated function calls to one call in passed `time`.
* The decorated function `callback` will be called once at the end of the timeout with the list of the first arguments in the calls.
*/
export declare function aggregate<T>(callback: (this: void, args: T[]) => void, time: number): (arg: T) => void;