mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
generated limit functions don't care about types, but preserve the return type of the function that they are passed.
11 lines
369 B
TypeScript
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>;
|