tgrid
Version:
Grid Computing Framework for TypeScript
26 lines (23 loc) • 535 B
text/typescript
import { WorkerConnector } from "../WorkerConnector";
/**
* @internal
*/
export interface IWorkerCompiler {
compile(content: string): Promise<string>;
remove(path: string): Promise<void>;
execute(
jsFile: string,
options?: Partial<WorkerConnector.IConnectOptions>,
): Promise<Worker>;
}
/**
* @internal
*/
export namespace IWorkerCompiler {
export type Creator = {
new (
jsFile: string,
options?: Partial<WorkerConnector.IConnectOptions>,
): IWorkerCompiler;
};
}