Update dependencies
[poolifier.git] / src / utility-types.ts
index 82dbb4233dab878049059a6334bb1bbcceab2c94..7ea86042ff796660b57410561bd1b57a2b9c8025 100644 (file)
@@ -1,9 +1,9 @@
 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
+ * Make all properties in T non-readonly.
  */
 export type Draft<T> = { -readonly [P in keyof T]?: T[P] }
 
@@ -43,7 +43,7 @@ export interface MessageValue<
   /**
    * Kill code.
    */
-  readonly kill?: KillBehavior | number
+  readonly kill?: KillBehavior | 1
   /**
    * Error.
    */
@@ -55,4 +55,3 @@ export interface MessageValue<
    */
   readonly parent?: MainWorker
 }
-