You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is something Zod does not intend to cover, any recommendations on a working alternative? I currently use ts-pattern to pattern match out the correct item after using Zod to parse, but it's twice the work as Zod could give me the pattern match for free while parsing.
Thanks!
The text was updated successfully, but these errors were encountered:
Issue
I'd like to use Zod to label my parsed data and use it in a discriminatedUnion
Example:
https://codesandbox.io/s/confident-stallman-l1ej5p?file=/src/index.tsx
I thought 3.20 addressed this with #1290
If this is something Zod does not intend to cover, any recommendations on a working alternative? I currently use ts-pattern to pattern match out the correct item after using Zod to parse, but it's twice the work as Zod could give me the pattern match for free while parsing.
Thanks!
The text was updated successfully, but these errors were encountered: