Is there an alternative to using sealedSubclasses on kotlin-js (reflecting on the list of classes in a sealed class)? I've ran into this working only on the jvm a few times now. My (ugly) workaround is using some enum that just duplicates all the implementing class names just so I van iterate over those things. Is there a more elegant solution to this? I know I can do an exhaustive when on objects. But I can't just iterate over all the implementing classes. In general, it seems reflection is a bit overlooked for this. Also, given that the sealed hierarchy is known at compile time, having them behave a bit more like enums (by e.g. having entries implemented) would be nice.