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

8 lines
280 B
TypeScript
Raw Normal View History

2024-10-02 20:15:21 +00: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;
}