Improvements for #161 (#169)
[poolifier.git] / src / utility-types.ts
index 2a2c1993c46b1d378ae23f78138c6e87f0fd9f16..d680fa16ddc7e4748a41f2e878def0384eb2e305 100644 (file)
@@ -1,7 +1,7 @@
 import type { Worker } from 'cluster'
 import type { MessagePort } from 'worker_threads'
+import type { KillBehavior } from './worker/worker-options'
 
-export type KillBehavior = 'HARD' | 'SOFT'
 /**
  * Make all properties in T non-readonly
  */
@@ -43,7 +43,7 @@ export interface MessageValue<
   /**
    * Kill code.
    */
-  readonly kill?: KillBehavior | number
+  readonly kill?: KillBehavior | 1
   /**
    * Error.
    */