Update src/worker/abstract-worker.ts
authorAlessandro Pio Ardizio <alessandroardizio94@gmail.com>
Tue, 16 Feb 2021 10:22:07 +0000 (11:22 +0100)
committerGitHub <noreply@github.com>
Tue, 16 Feb 2021 10:22:07 +0000 (11:22 +0100)
Co-authored-by: Shinigami <chrissi92@hotmail.de>
src/worker/abstract-worker.ts

index c50cfbb081599ed955561edea56a634c93d885ef..d57eacd70557a92befd1c132df8a199cab9aa68d 100644 (file)
@@ -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.
    */