8 lines
427 B
TypeScript
8 lines
427 B
TypeScript
/**
|
|
* Executes an array of callback functions with the same arguments.
|
|
* @template T The types of the arguments that the callback functions take.
|
|
* @param callbacks array of callback functions to execute.
|
|
* @returns A new function that executes all of the original callback functions with the same arguments.
|
|
*/
|
|
export declare function executeCallbacks<T extends unknown[]>(...callbacks: T): (...args: unknown[]) => void;
|