Join Slack
Powered by
another interesting issue: when compiling sealed i...
# javascript
b
Bernhard
07/28/2026, 10:20 AM
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
Artem Kobzar
07/28/2026, 12:58 PM
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
Bernhard
07/28/2026, 12:58 PM
thank you
5
Views
Open in Slack
Previous
Next