feat: check worker inactive time only on dynamic worker
[poolifier.git] / src / utility-types.ts
index 9ecf56577f999f4d56a5474917d522f644993749..980c00896a0ebf23f75162605cccf52548cc535f 100644 (file)
@@ -85,6 +85,10 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
    * Whether the worker has started or not.
    */
   readonly started?: boolean
+  /**
+   * Whether the worker is dynamic or not.
+   */
+  readonly dynamic?: boolean
 }
 
 /**