npm.io
1.0.33 • Published 2 years ago

@types/node-array-ext

Licence
MIT
Version
1.0.33
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 2324 GMT
  • Dependencies: none

Credits

These definitions were written by Ben Goltz.