UNPKG

272 BTypeScriptView Raw
1export type RunFunction = () => Promise<unknown>;
2export interface Queue<Element, Options> {
3 size: number;
4 filter: (options: Partial<Options>) => Element[];
5 dequeue: () => Element | undefined;
6 enqueue: (run: Element, options?: Partial<Options>) => void;
7}