mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
962 B
TypeScript
17 lines
962 B
TypeScript
// Type definitions for node-array-ext v1.0.00
|
|
// Project: https://github.com/Beng89/node-array-ext
|
|
// Definitions by: Ben Goltz <https://github.com/Beng89>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
|
/**
|
|
* Processes each of the elements in the array and triggers a callback once every element has been processed.
|
|
* - note that the elements are called in order but are not guaranteed to finish in order.
|
|
*/
|
|
export declare function asyncEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
|
|
/**
|
|
* Processes each of the elements in the array and triggers a callback once every element has been processed.
|
|
* - note that the elements are called in order and are guaranteed to finish in order.
|
|
*/
|
|
export declare function awaitEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
|