UNPKG

393 BTypeScriptView Raw
1import { ModuleMethods, ModuleProxy, ProxyableFunction, Worker as WorkerType } from "../types/master";
2export declare function createProxyFunction<Args extends any[], ReturnType>(worker: WorkerType, method?: string): ProxyableFunction<Args, ReturnType>;
3export declare function createProxyModule<Methods extends ModuleMethods>(worker: WorkerType, methodNames: string[]): ModuleProxy<Methods>;