agsamantha/node_modules/p-queue/dist/queue.d.ts

8 lines
280 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
export declare type RunFunction = () => Promise<unknown>;
export interface Queue<Element, Options> {
size: number;
filter: (options: Partial<Options>) => Element[];
dequeue: () => Element | undefined;
enqueue: (run: Element, options?: Partial<Options>) => void;
}