fix: fix coverage report by disabling sourcemap in build used in UTs
[poolifier.git] / src / utility-types.ts
index 3d5673f93111d552a4cdce0364d7c036cf3e175e..48988c089f6717e1e4108143ce87c20bdc5536d1 100644 (file)
@@ -72,7 +72,7 @@ export interface Task<Data = unknown> {
   /**
    * Worker id.
    */
-  readonly workerId: number
+  readonly workerId?: number
   /**
    * Task name.
    */
@@ -119,7 +119,7 @@ export interface MessageValue<Data = unknown, ErrorData = unknown>
   /**
    * Task function operation:
    * - `'add'` - Add a task function.
-   * - `'delete'` - Delete a task function.
+   * - `'remove'` - Remove a task function.
    * - `'default'` - Set a task function as default.
    */
   readonly taskFunctionOperation?: 'add' | 'remove' | 'default'