@colinhacks ("Colin McDonnell") wrote:
I'm planning to deprecate `z.discriminatedUnion`
Here's 1000 words about why: https://github.com/colinhacks/zod/issues/2106
Here's the new `z.switch` API I'm proposing to replace it 👇
@colinhacks ("Colin McDonnell") wrote:
I'm planning to deprecate `z.discriminatedUnion`
Here's 1000 words about why: https://github.com/colinhacks/zod/issues/2106
Here's the new `z.switch` API I'm proposing to replace it 👇