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
Then use the hono/client within the server project and on the client side to test the outcome.
What is the expected behavior?
When I use the hono/client in my server project it infers the inputs just fine:
What do you see instead?
But when I use the exact same types etc. it does not infer the args correctly.
Additional information
When I use the default validator function provided by Hono it works just fine. But even when I wrap that function to create my own kind of zValidator it breaks and has the same behavior as mentioned before.
My .tsconfigs are setup properly and all the routes and stuff gets inferred as expected.
I appreciate any help.
The text was updated successfully, but these errors were encountered:
Which middleware has the bug?
@hono/zod-validator
What version of the middleware?
0.4.3
What version of Hono are you using?
4.6.16
What runtime/platform is your app running on? (with version if possible)
Bun@1.1.2
What steps can reproduce the bug?
Set up a nested router.
Include it in the root Router. (No other middlewares are used so far)
Then use the hono/client within the server project and on the client side to test the outcome.
What is the expected behavior?
When I use the hono/client in my server project it infers the inputs just fine:
What do you see instead?
But when I use the exact same types etc. it does not infer the
args
correctly.Additional information
When I use the default
validator
function provided by Hono it works just fine. But even when I wrap that function to create my own kind ofzValidator
it breaks and has the same behavior as mentioned before.My
.tsconfigs
are setup properly and all the routes and stuff gets inferred as expected.I appreciate any help.
The text was updated successfully, but these errors were encountered: