Installation
npm install --save @types/node-array-ext
Summary
This package contains type definitions for node-array-ext (https://github.com/Beng89/node-array-ext).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-array-ext.
index.d.ts
/**
* 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: 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: T[],
each: (i: number, element: T, done: (err?: Error) => void) => void,
finish: (err?: Error) => void,
): void;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: none
Credits
These definitions were written by Ben Goltz.