build(deps-dev): apply updates
[poolifier.git] / src / utility-types.ts
index d6869557d5af04ec06444e320d1fe6cac41cadc0..12067c077e06599339a0b01e0ebc51df42178713 100644 (file)
@@ -101,7 +101,7 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
   /**
    * Kill code.
    */
-  readonly kill?: KillBehavior | true
+  readonly kill?: KillBehavior | true | 'success' | 'failure'
   /**
    * Task error.
    */
@@ -110,6 +110,10 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
    * Task performance.
    */
   readonly taskPerformance?: TaskPerformance
+  /**
+   * Task function names.
+   */
+  readonly taskFunctions?: string[]
   /**
    * Whether the worker computes the given statistics or not.
    */
@@ -148,3 +152,5 @@ export interface PromiseResponseWrapper<Response = unknown> {
    */
   readonly workerNodeKey: number
 }
+
+export type Writable<T> = { -readonly [P in keyof T]: T[P] }