UNPKG

qyu

Version:

A general-purpose asynchronous job queue for Node.js

12 lines (11 loc) 452 B
import { QyuBase, type QyuInputOptions, type JobAddInput } from './QyuBase.js'; export { QyuInvokable as default, type QyuInputOptions }; declare const QyuInvokable: { new (opts?: QyuInputOptions): Qyu; }; type Qyu = QyuBase & { <T>(input: JobAddInput<T>): Promise<T>; <T extends readonly JobAddInput<unknown>[] | readonly []>(input: T): Promise<{ [K in keyof T]: T[K] extends JobAddInput<infer RetVal> ? RetVal : never; }>; };