refactor: cleanup message passing code
[poolifier.git] / src / utility-types.ts
index 980c00896a0ebf23f75162605cccf52548cc535f..2035235022d13f49cb39c98e3ea10b91cf7ca8ec 100644 (file)
@@ -68,7 +68,7 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
   /**
    * Kill code.
    */
-  readonly kill?: KillBehavior | 1
+  readonly kill?: KillBehavior | true
   /**
    * Task error.
    */
@@ -86,9 +86,9 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
    */
   readonly started?: boolean
   /**
-   * Whether the worker is dynamic or not.
+   * Whether the worker starts or stops its aliveness check.
    */
-  readonly dynamic?: boolean
+  readonly checkAlive?: boolean
 }
 
 /**