You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have readValidatedBody and getValidatedQuery and we could add a getValidatedRouterParams to get a typed result.
On a s side note, I feel like we have some naming inconsistencies ;
according to express the precise terminology is route parameters. I think both routerParams and routeParams are confusing because of queryParameters (which maps to getQuery)... Maybe we could consider a different name, like getUrlSegment ?
we currently use both readX and getX ? Could we use getX for everything for the sake of consistencies?
This would be a great feature to add.
Right now I'm still using h3-zod primarily because useValidatedParams, which is pretty much the proposed getValidatedRouterParams(event, validate)
Describe the feature
Similar to
getValidatedBody(event, validate)
but for router params.Additional information
The text was updated successfully, but these errors were encountered: