Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Dec 14, 2024
1 parent 86fffbd commit 4d559c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,14 @@ router.post("/login", eventHandler(async (event) => {

## Utils available

`h3-valibot` provides a series of utils, that each also comes in the `useSafeValidated*` variant for safe validation (doesn't throw an error):
`h3-valibot` provides a series of utils and their safe variants (don't throw an h3 error):

- `useValidatedBody`
- `useValidatedParams`
- `useValidatedQuery`
- `useSafeValidatedBody`
- `useSafeValidatedParams`
- `useSafeValidatedQuery`

Each one accepts an h3 `event`, a valibot `schema` and optionally a parser `config`.

Expand Down

0 comments on commit 4d559c5

Please sign in to comment.