Hi! We are designing how Kotlin code will be visib...
# javascript
s
Hi! We are designing how Kotlin code will be visible from JavaScript in the new version of Kotlin/JS. I'd like to gather some data. To what extent do you use Kotlin code from JavaScript? 0️⃣ - Kotlin code calls JavaScript, but not vice versa. 1️⃣ - JavaScript calls a few Kotlin functions or uses a couple simple classes. 2️⃣ - JavaScript code uses a substantial portion of Kotlin library API. Thanks!
1️⃣ 18
2️⃣ 6
0️⃣ 27
j
I wish we could distribute JS libraries with both typescript and kotlin definitions more easily. So far the lack of official tool for TS defs generation made me refrain from trying. So I can't really vote that I'm extensively using Kotlin from JS but I certainly wish to have better support for it 😊
☝️ 10
👍 1
t
And it would be nice to be able to use annotations provided by other JS libraries 🙂
j
@Tristan Caron you mean type annotations? I believe JB has introduced the automatic Dukat run on the TS definitions of the dependencies in version 1.3.50 of the Kotlin/JS Gradle plugin, so that you can basically use typescript libraries from Kotlin. Haven't tried it yet though
t
I mean being able to use libraries such as Angular