-
Hello everyone, I would like to know how to perform type checking on the fly using zod. This is how I do it:
Is it the best way? Note that I am aware of the queryFn option, but I would prefer a simpler method. |
Beta Was this translation helpful? Give feedback.
Answered by
phryneas
Apr 27, 2023
Replies: 1 comment 12 replies
-
@phryneas. I was wondering if you would be willing to assist me. |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pretty much. You could also write a baseQuery wrapper for zod - something roughly like this untested pseudocode: