Skip to content

Commit

Permalink
refactor(validation-errors): allow async shaper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Oct 24, 2024
1 parent d2f1013 commit 8c86c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-safe-action/src/validation-errors.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type HandleValidationErrorsShapeFn<
metadata: MD;
ctx: Prettify<Ctx>;
}
) => CVE;
) => CVE | Promise<CVE>;

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

0 comments on commit 8c86c1f

Please sign in to comment.