JavaScript facades using Kotlin?


What is the current state of JavaScript support for Kotlin. Is it considered mature or still in experimental state?

I have been working with ScalaJS for some time and its interfacing with the JS world through facades is incredibly powerful (defining traits or classes as native interfaces (@js.native) to JS while mapping namespaces properly (@JSName).

Is there any support to do similar things in Kotlin today or planned in the future?


The Koltin JS not released yet, but we’ll do it later, now we resumed works on it.

We have @native annotation for similar cases and we use noImpl as placeholder. It doesn’t yet have good documentation. You can find some information here and examples here

@JSName not supported yet, but planned, see KT-2752