diff --git a/packages/next-safe-action/src/validation-errors.types.ts b/packages/next-safe-action/src/validation-errors.types.ts index 8051d30..06c7505 100644 --- a/packages/next-safe-action/src/validation-errors.types.ts +++ b/packages/next-safe-action/src/validation-errors.types.ts @@ -63,7 +63,7 @@ export type HandleValidationErrorsShapeFn< metadata: MD; ctx: Prettify; } -) => CVE; +) => CVE | Promise; /** * Type of the function used to format bind arguments validation errors. @@ -82,4 +82,4 @@ export type HandleBindArgsValidationErrorsShapeFn< metadata: MD; ctx: Prettify; } -) => CBAVE; +) => CBAVE | Promise;