Installation
npm install --save @types/promise-queue
Summary
This package contains type definitions for promise-queue (https://github.com/azproduction/promise-queue).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-queue.
export = PromiseQueue;
declare class PromiseQueue {
constructor(maxPendingPromises?: number, maxQueuedPromises?: number, options?: PromiseQueue.QueueOptions);
add<T>(promiseGenerator: () => Promise<T>): Promise<T>;
getPendingLength(): number;
getQueueLength(): number;
static configure(GlobalPromise: PromiseConstructor): void;
}
declare namespace PromiseQueue {
interface QueueOptions {
onEmpty(): void;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Lachlan Stuart.