Skip to content

Commit 8c86c1f

Browse files
committedOct 24, 2024
refactor(validation-errors): allow async shaper functions
1 parent d2f1013 commit 8c86c1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/next-safe-action/src/validation-errors.types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export type HandleValidationErrorsShapeFn<
6363
metadata: MD;
6464
ctx: Prettify<Ctx>;
6565
}
66-
) => CVE;
66+
) => CVE | Promise<CVE>;
6767

6868
/**
6969
* Type of the function used to format bind arguments validation errors.
@@ -82,4 +82,4 @@ export type HandleBindArgsValidationErrorsShapeFn<
8282
metadata: MD;
8383
ctx: Prettify<Ctx>;
8484
}
85-
) => CBAVE;
85+
) => CBAVE | Promise<CBAVE>;

0 commit comments

Comments
 (0)
Please sign in to comment.