UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

3 lines (2 loc) 240 B
import type { TaskWorkerOptions } from '../types/workers.js'; export declare const runTaskWorker: <Options extends TaskWorkerOptions<string, any[]>>(file: string, identifier: string, { name, params, ...rest }: Options) => Promise<unknown>;