From: Alessandro Pio Ardizio Date: Tue, 16 Feb 2021 10:22:07 +0000 (+0100) Subject: Update src/worker/abstract-worker.ts X-Git-Tag: v2.0.0-beta.2~17^2~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a132060ed144362b5103cb08da0a7113d6820d7b;p=poolifier.git Update src/worker/abstract-worker.ts Co-authored-by: Shinigami --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index c50cfbb0..d57eacd7 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -27,7 +27,7 @@ export abstract class AbstractWorker< /** * The kill behavior set as option on the Worker constructor or a default value. */ - protected readonly killBehavior: string + protected readonly killBehavior: 'HARD' | 'SOFT' /** * Whether the worker is working asynchronously or not. */