initial commit. phase 1 complete

This commit is contained in:
2026-05-05 20:45:19 +02:00
parent d9c68313a0
commit 89e058ffac
20631 changed files with 3224610 additions and 43 deletions
+19
View File
@@ -0,0 +1,19 @@
import { Worker as JestWorker } from 'next/dist/compiled/jest-worker';
type FarmOptions = ConstructorParameters<typeof JestWorker>[1];
export declare class Worker {
private _worker;
private _restarting;
constructor(workerPath: string, options: FarmOptions & {
timeout?: number;
onRestart?: (method: string, args: any[], attempts: number) => void;
logger?: Pick<typeof console, 'error' | 'info' | 'warn'>;
exposedMethods: ReadonlyArray<string>;
enableWorkerThreads?: boolean;
});
end(): ReturnType<JestWorker['end']>;
/**
* Quietly end the worker if it exists
*/
close(): void;
}
export {};