Merge branch 'master' into feature/task-functions
[poolifier.git] / src / worker / task-functions.ts
index a61d69627ce6eeebd36e462f5801c36e94cc8e06..353b8b0c1f8b329d71c89e6a89bbbdd921d3d548 100644 (file)
@@ -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
+}