UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

5 lines (4 loc) 399 B
import { Service } from '../service/index.js'; import type { ServiceWorkerOptions } from '../types/workers.js'; import type { TaskDefinitions } from '../types/definitions.js'; export declare const runServiceWorker: <Definitions extends TaskDefinitions, Options extends ServiceWorkerOptions>(file: string, identifier: string, { exceptionHandler, ...rest }: Options) => Promise<Service<Definitions>>;