Hey, I was wondering if it is possible to publish ...
# javascript
m
Hey, I was wondering if it is possible to publish have Kotlin/Js project for node so it's accessible through Typescript, the usage is simple, I have serializable classes in the backend and being able to re-use it in the frontend (react) without needing to re-make them in Typescript would be awesome.
e
Yes, it is possible with a combination of
binaries.library()
and
generateTypeScriptDefinitions()
. To publish to npm, in case you need to do it, using Gradle refer to https://github.com/DanySK/npm-publish