Closed jpwilliams closed 9 months ago
Latest commit: e14b054fdbcdc01b0897d189143e6fb9c7421a1d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Summary
Add the ability to use
z.discriminatedUnion()
andz.union()
(as long as it's only a union of valid types).Note that
z.discriminatedUnion()
will likely be deprecated in lieu ofz.switch()
, though this API is not yet available. See colinhacks/zod#2106.Checklist
Added a docs PR that references this PRN/ARelated