npm.io
1.0.3 • Published 2 years ago

@types/promise-map-limit

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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.