We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85275d8 commit 6b3bf8bCopy full SHA for 6b3bf8b
src/types.ts
@@ -57,11 +57,9 @@ export type TaskCallback = (task: {
57
error<T extends string | Error>(error: T): T extends string ? { message: T; isError: true } : T
58
}) =>
59
| Error
60
- | Promise<Error>
61
| { isError: true; message: string }
62
- | Promise<{ isError: true; message: string }>
63
| string
64
- | Promise<string>
+ | Promise<Error | { isError: true; message: string } | string>
65
66
/**
67
* Options accepted by the tasks renderers
0 commit comments