https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Andrew

01/24/2023, 2:07 AM
Are there any good examples/code/tutorials that show how to make a javascript (preferably typescript) library in kotlin and use it on a pure javascript environment? I've played around with kotlin/js a bit before but not really sure how the typescript part works or how to use the code elsewhere in a seamless way. Also not sure how much this has changed in the last few years, for example some of the google search results for this are a few years old so maybe there are different/better ways of doing things.
This works in monorepo setups and does not require publishing. However if you do need to publish, it's just a single extra config away.
k

Kevin S

01/26/2023, 2:44 PM
My coworker Jigar has done some blog posts about kotlin/js that could be helpful https://dev.to/touchlab/jsexport-guide-for-exposing-kotlin-to-js-20l9
a

Andrew

01/27/2023, 4:11 AM
@Kevin S I actually found that same article on my own and sort of answered my own question with it since it had some of the little details I was looking for.
4 Views