Skip to content

Commit 020a752

Browse files
committed
v4: Fix HandleErrorFunction type
1 parent 0e82698 commit 020a752

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/src/v3/types/tasks.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,7 @@ export type HandleErrorArgs = {
149149
signal?: AbortSignal;
150150
};
151151

152-
export type HandleErrorFunction = (
153-
payload: any,
154-
error: unknown,
155-
params: HandleErrorArgs
156-
) => HandleErrorResult;
152+
export type HandleErrorFunction = AnyOnCatchErrorHookFunction;
157153

158154
type CommonTaskOptions<
159155
TIdentifier extends string,

0 commit comments

Comments
 (0)