X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=60ec2f546fe50f2ab14ea96b49b60d839dd12ea0;hb=8b4b3bded3afa74f22aa673871d2dfb72b6da090;hp=3d5673f93111d552a4cdce0364d7c036cf3e175e;hpb=edbc15c62f491f28a09a03a4cc134a8a9522059e;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index 3d5673f9..60ec2f54 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -69,10 +69,6 @@ export interface WorkerStatistics { * @internal */ export interface Task { - /** - * Worker id. - */ - readonly workerId: number /** * Task name. */ @@ -104,6 +100,10 @@ export interface Task { */ export interface MessageValue extends Task { + /** + * Worker id. + */ + readonly workerId?: number /** * Kill code. */ @@ -119,7 +119,7 @@ export interface MessageValue /** * 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'