https://kotlinlang.org logo
Title
b

bjonnh

12/16/2019, 3:50 AM
I have a project that is Kotlin Backend (ktor, coroutines and kotlinx.serialization mostly) and the frontend is Vue. I would like to share some code between JS and Kotlin, especially regarding the serialization and the data classes. Can I expect being able to use a transpiled kotlin library from javascript or is Kotlin/JS only made to target directly the DOM and call other libs?
Reading that makes me believe that I can do what I want: https://kotlinlang.org/docs/reference/js-to-kotlin-interop.html