-
Is there an API for union? I want a check for either property X or property Y exists in an object. In Zod I used https://zod.dev/?id=discriminated-unions Discriminated unions Example: parsing environment variables and checking either |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For now, just use the |
Beta Was this translation helpful? Give feedback.
-
Available since v0.20.0 #90 |
Beta Was this translation helpful? Give feedback.
Available since v0.20.0 #90