repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/express-cluster...
[poolifier.git]
/
src
/
utility-types.ts
diff --git
a/src/utility-types.ts
b/src/utility-types.ts
index b2470bea17df1e283ee492a4346f46bf6944a13f..48988c089f6717e1e4108143ce87c20bdc5536d1 100644
(file)
--- a/
src/utility-types.ts
+++ b/
src/utility-types.ts
@@
-72,7
+72,7
@@
export interface Task<Data = unknown> {
/**
* Worker id.
*/
/**
* Worker id.
*/
- readonly workerId: number
+ readonly workerId
?
: number
/**
* Task name.
*/
/**
* Task name.
*/
@@
-118,12
+118,14
@@
export interface MessageValue<Data = unknown, ErrorData = unknown>
readonly taskPerformance?: TaskPerformance
/**
* Task function operation:
readonly taskPerformance?: TaskPerformance
/**
* Task function operation:
- * - `'has'` - Check if a task function exists.
* - `'add'` - Add a task function.
* - `'add'` - Add a task function.
- * - `'
delete'` - Delet
e a task function.
+ * - `'
remove'` - Remov
e a task function.
* - `'default'` - Set a task function as default.
*/
* - `'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.
readonly taskFunctionOperationStatus?: boolean
/**
* Task function serialized to string.