Is there any way that I can automatically generate Kotlin files with external
definitions from npm dependency .d.ts
files? For example, I want to try to make the phaser
library work with Kotlin, but don’t want to define all the definitions myself.
For Phaser specifically, you might possibly be interested in my old PhaserKt project; however, it’s old and does require manually specifying types, which frankly is a giant pain.
You might try messing around with GitHub - Kotlin/dukat: Converter of <any kind of declarations> to Kotlin external declarations.
1 Like