repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34d68e4
)
docs: add type definition documentation
author
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 7 Jun 2023 22:16:54 +0000
(
00:16
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Wed, 7 Jun 2023 22:16:54 +0000
(
00:16
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utility-types.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utility-types.ts
b/src/utility-types.ts
index 10b8eda1e1470991f23bd9ccbffb99b46fbc90c2..57ff000330e29cc7dffb3541a65438c3edf65b80 100644
(file)
--- a/
src/utility-types.ts
+++ b/
src/utility-types.ts
@@
-11,6
+11,11
@@
import type { IWorker, Task } from './pools/worker'
*/
export type Draft<T> = { -readonly [P in keyof T]?: T[P] }
+/**
+ * Task error.
+ *
+ * @typeParam Data - Type of data sent to the worker. This can only be serializable data.
+ */
export interface TaskError<Data = unknown> {
/**
* Error message.