Files
DefinitelyTyped/types/p-limit/index.d.ts
2017-08-08 13:53:36 -07:00

9 lines
340 B
TypeScript

// Type definitions for p-limit 1.1
// Project: https://github.com/sindresorhus/p-limit#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = pLimit;
declare function pLimit<T>(concurrency: number): (fn: () => PromiseLike<T>) => Promise<T>;