From 8c86c1f7e438489f5dd80aeda320e816d1031221 Mon Sep 17 00:00:00 2001 From: Edoardo Ranghieri Date: Thu, 24 Oct 2024 02:56:47 +0200 Subject: [PATCH] refactor(validation-errors): allow async shaper functions --- packages/next-safe-action/src/validation-errors.types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;