UNPKG

@xylabs/threads

Version:

Web workers & worker threads as simple as a function call

4 lines 349 B
import type { AbstractedWorkerAPI, WorkerFunction, WorkerModule } from '../types/worker.ts'; import type { WorkerGlobalScope } from './WorkerGlobalScope.ts'; export declare function createExpose(implementation: AbstractedWorkerAPI, self: WorkerGlobalScope): (exposed: WorkerFunction | WorkerModule<any>) => void; //# sourceMappingURL=expose.d.ts.map