discriminatedUnion
produces TS error when .default
or .preprocess
are applied
#1263
Labels
stale
No activity in last 60 days
Playground link.
Given this snippet:
TypeScript produces this error:
This code works at runtime however and Zod correctly parses the object:
The text was updated successfully, but these errors were encountered: