Skip to content

How to access ZodUnion schemas #3848

Closed Answered by god-of-javascript
god-of-javascript asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer, we can use .options to get list of possible options on an union.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by god-of-javascript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant