Skip to content

Commit 6b3bf8b

Browse files
committed
fix(task_manager): allow tasks to sometimes fail via return value
fixes poppinss#22
1 parent 85275d8 commit 6b3bf8b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/types.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ export type TaskCallback = (task: {
5757
error<T extends string | Error>(error: T): T extends string ? { message: T; isError: true } : T
5858
}) =>
5959
| Error
60-
| Promise<Error>
6160
| { isError: true; message: string }
62-
| Promise<{ isError: true; message: string }>
6361
| string
64-
| Promise<string>
62+
| Promise<Error | { isError: true; message: string } | string>
6563

6664
/**
6765
* Options accepted by the tasks renderers

0 commit comments

Comments
 (0)