Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to use z.union together with multiple arrays that would let's say come from different files.
Below is the example of my code, variable names are just for the purpose of the example.
I guess this is to force users to provide at least 2 ZodTypeAny.
So for example doing something like this fixes the error mentioned above (or just anything that matches ZodTypeAny):
Does anyone maybe have some proper way around this without the need of requiring those 2 dummies?
Beta Was this translation helpful? Give feedback.
All reactions