T
TanStack2mo ago
deep-jade

search parameter is not inferred correctly?

I'm using validateSearch according to the documentation but the type is not inferred at all. It just shows as an empty object, what am I doing wrong?
No description
3 Replies
deep-jade
deep-jadeOP2mo ago
I'm using zod v4
optimistic-gold
optimistic-gold2mo ago
pass the schema directly into validateSearch dont wrap it in another function
deep-jade
deep-jadeOP2mo ago
thanks

Did you find this page helpful?