Files
DefinitelyTyped/types/p-limit/index.d.ts
Neil Gentleman 038d712743 [p-limit] fix generics (#23066)
generated limit functions don't care about types, but preserve the return
type of the function that they are passed.
2018-01-24 12:00:46 -08: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(concurrency: number): <T>(fn: () => PromiseLike<T>) => Promise<T>;