I have a companion object that I use in a multiplatform build. I can annotate the Java method to be JvmStatic and avoid the Companion object when called from java. I can’t seem to do this from JavaScript however.
Instead of this:
a.Myclass.Companion.THE_CONSTANT
I want my Java and JavaScript client code to be the same:
a.Myclass.THE_CONSTANT