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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following:
Not only does this not work, but simply calling
.pipeappears to break myobjSchemaentirely. Using it and not theformSchemaresults in the following error:Simply calling
.pipeon a type constructed using.orappears to break the underlying or type entirely.Beta Was this translation helpful? Give feedback.
All reactions