Installation
npm install --save @types/promise-map-limit
Summary
This package contains type definitions for promise-map-limit (https://github.com/dbrockman/promise-map-limit).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-map-limit.
index.d.ts
export = promiseMapLimit;
declare function promiseMapLimit<T, R>(
iterable: Iterable<T>,
concurrency: number,
iteratee: promiseMapLimit.IIteratee<T, R>,
): Promise<R[]>;
declare namespace promiseMapLimit {
type IIteratee<T, R> = (value: T) => Promise<R> | R;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: none
Credits
These definitions were written by Joseph Kohlmann.