Challenges in Creating Discriminated Unions with Schema Classes
Is it possible to creat a discriminated union of Schema classes? In the docs, the example given is with
And it doesn't seem to work with
The resulting TS error being:
I feel like I'm missing a fundamental difference between
Structs:And it doesn't seem to work with
Classes, i.e.The resulting TS error being:
I feel like I'm missing a fundamental difference between
Schema.Struct and the result of extending Schema.Class.