X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=48988c089f6717e1e4108143ce87c20bdc5536d1;hb=f7d15c1217381b306300beb7926b42fde93bc579;hp=b2470bea17df1e283ee492a4346f46bf6944a13f;hpb=71cad0b00456d2f7cf0987604062674ff19b44c4;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index b2470bea..48988c08 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -72,7 +72,7 @@ export interface Task { /** * Worker id. */ - readonly workerId: number + readonly workerId?: number /** * Task name. */ @@ -118,12 +118,14 @@ export interface MessageValue readonly taskPerformance?: TaskPerformance /** * Task function operation: - * - `'has'` - Check if a task function exists. * - `'add'` - Add a task function. - * - `'delete'` - Delete a task function. + * - `'remove'` - Remove a task function. * - `'default'` - Set a task function as default. */ - readonly taskFunctionOperation?: 'has' | 'add' | 'remove' | 'default' + readonly taskFunctionOperation?: 'add' | 'remove' | 'default' + /** + * Whether the task function operation is successful or not. + */ readonly taskFunctionOperationStatus?: boolean /** * Task function serialized to string.