T
TanStack15h ago
robust-apricot

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
robust-apricot
robust-apricotOP15h ago
I'm using zod v4
genetic-orange
genetic-orange15h ago
pass the schema directly into validateSearch dont wrap it in another function
robust-apricot
robust-apricotOP15h ago
thanks

Did you find this page helpful?