Replies: 1 comment 2 replies
-
The error you're getting is there to warn about cases where you have morphs (in this case, However, these two types should be discriminatable because there is an The reason we're failing to discriminate this case is the string literal union. There's currently a limitation affecting this type of discriminated union: Once this issue is resolved, your union will be correctly discriminated. I'll actually make a point as well to loosen the restrictions a bit here so any union with disjoint branches can include morphs in the next release. |
Beta Was this translation helpful? Give feedback.
-
I have the following:
Not only does this not work, but simply calling
.pipe
appears to break myobjSchema
entirely. Using it and not theformSchema
results in the following error:Simply calling
.pipe
on a type constructed using.or
appears to break the underlying or type entirely.Beta Was this translation helpful? Give feedback.
All reactions