Files
DefinitelyTyped/types/p-limit/index.d.ts
Nate Silva 5a1400f33d declare the namespace (#20008)
allows `import * as pLimit from 'p-limit'`
2017-09-25 17:19:11 -07:00

11 lines
369 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
declare namespace pLimit {}
export = pLimit;
declare function pLimit<T>(concurrency: number): (fn: () => PromiseLike<T>) => Promise<T>;