securityos/node_modules/next/dist/lib/worker.d.ts

18 lines
577 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
import { Worker as JestWorker } from 'next/dist/compiled/jest-worker';
type FarmOptions = ConstructorParameters<typeof JestWorker>[1];
export declare class Worker {
private _worker;
constructor(workerPath: string, options: FarmOptions & {
timeout?: number;
onRestart?: (method: string, args: any[], attempts: number) => void;
exposedMethods: ReadonlyArray<string>;
enableWorkerThreads?: boolean;
});
end(): ReturnType<JestWorker['end']>;
/**
* Quietly end the worker if it exists
*/
close(): void;
}
export {};