Hi! I was wondering if Kotlin/KJS could be a good match to write a database client library that would perhaps be
used more frequently from JavaScript, TypeScript and Java than from Kotlin or Kotlin/JS, at least for a start.
The
current implementation is pure JS and has no TS types.
Writing the code on TypeScript and making it callable from K/JS sounds absolutely doable, but the attractive thing here is to also generate a Java client.
It seems to me there's some focus going on in making existing JS/TS libs easily accessible but
how about the other way?
Can I write a single codebase in Kotlin code in such way that it is easy and
natural to call from Java/JavaScript/TypeScript?
Does this sound like a practical thing to do? What can I expect in terms of added K/JS runtime size?
Thx!