https://kotlinlang.org logo
#javascript
Title
# javascript
j

juliocbcotta

10/18/2023, 7:24 AM
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

juliocbcotta

10/19/2023, 3:29 PM
Thank you, the second link is what I needed. Is there a database like to Typescript for those definitions ?
a

Artem Kobzar

10/19/2023, 3:30 PM
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

juliocbcotta

10/19/2023, 3:34 PM
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

Edoardo Luppi

10/19/2023, 8:27 PM
@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
3 Views