repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: improve error reporting at task functions handling
[poolifier.git]
/
src
/
worker
/
task-functions.ts
diff --git
a/src/worker/task-functions.ts
b/src/worker/task-functions.ts
index a61d69627ce6eeebd36e462f5801c36e94cc8e06..353b8b0c1f8b329d71c89e6a89bbbdd921d3d548 100644
(file)
--- a/
src/worker/task-functions.ts
+++ b/
src/worker/task-functions.ts
@@
-43,3
+43,11
@@
export type TaskFunctions<Data = unknown, Response = unknown> = Record<
string,
TaskFunction<Data, Response>
>
+
+/**
+ * Task function operation return type.
+ */
+export interface TaskFunctionOperationReturnType {
+ status: boolean
+ error?: Error
+}