UNPKG

type-compiler

Version:

A TypeScript compiler plugin for enhanced runtime type checking and analysis with Zod validation

33 lines (32 loc) 778 B
import { TypeCompilerOptions } from './types'; /** * A pool of worker threads for parallel processing */ export declare class WorkerPool { private options; private workers; private availableWorkers; private taskQueue; private isProcessing; constructor(options: TypeCompilerOptions); /** * Process a type using a worker thread */ processType(typeData: any): Promise<string>; /** * Create a new worker */ private createWorker; /** * Terminate all workers */ terminate(): void; /** * Shut down the worker pool */ shutdown(): Promise<void>; } /** * Get a worker pool for parallel processing */ export declare function getWorkerPool(options: TypeCompilerOptions): WorkerPool | null;