Skip to content

Commit ddf4c6a

Browse files
committed
feat: update dts
1 parent 8f7b87d commit ddf4c6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare namespace Farm {
4242
): void;
4343
}
4444

45-
export interface FarmOptions extends ForkMode {
45+
export interface FarmOptions {
4646
enableWorkerThreads?: boolean;
4747
maxCallsPerWorker?: number;
4848
maxConcurrentWorkers?: number;
@@ -53,6 +53,7 @@ declare namespace Farm {
5353
autoStart?: boolean;
5454
asyncInit?: boolean;
5555
maxInitTime?: number;
56+
forcedKillTime?: number;
5657
workerOptions?: ForkOptions | WorkerOptions;
5758
onChild?: (child: ChildProcess | Worker, worker: any) => void;
5859
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@baidu/worker-farm",
33
"description": "Distribute processing tasks to child processes with an über-simple API and baked-in durability & custom concurrency options.",
4-
"version": "1.9.3",
4+
"version": "1.9.4",
55
"homepage": "https://github.com/kekee000/node-worker-farm",
66
"authors": [
77
"Rod Vagg @rvagg <[email protected]> (https://github.com/rvagg)"

0 commit comments

Comments
 (0)