What is the recommended way to access JS libraries...
# javascript
j
What is the recommended way to access JS libraries in jsMain source code? Any tutorial or documentation ?
help?
It's how to define library in Kotlin
It's how to define npm dependencies in gradle
j
Thank you, the second link is what I needed. Is there a database like to Typescript for those definitions ?
a
Common projects contains Kotlin wrappers here: https://github.com/JetBrains/kotlin-wrappers
For rest you could use this project to automatically convert TS definitions into Kotlin: https://github.com/Kotlin/dukat
j
sadly, there is no wrapper to mixpanel yet, I will try dukat... thank you again... I googled for this stuff multiple times, but google failed me.
K 1
e
@juliocbcotta if the TS types are relatively simple you can try integrating automatic generation with https://github.com/karakum-team/karakum in kotlin-wrappers.
Dukat is currently on-hold (@Artem Kobzar may confirm this), so kotlin-wrappers uses an alternative solution.
👍 1