another interesting issue: when compiling sealed i...
# javascript
b
another interesting issue: when compiling sealed interfaces to TS, there's no way to exhaustive check it in typescript; I think that's only supported for unions right now
1
a
Yep, this is why we want to re-work the translation of the sealed hierarchy to the union types. This is the issue to track: youtrack.jetbrains.com/issue/KT-71798/KJS-Sealed-classes-should-be-compiled-to-union-types
b
thank you