its a feature of the js backend. so if you could put your data classes into a common module, and create the typescript from those. your jvm project does not need to be multiplatform, it can just depend on the common module of the multiplatform build
p
Peter Ertl
05/05/2021, 4:40 PM
so, in a common module, I would add an gradle task to produce .d.ts ?
c
christophsturm
05/05/2021, 6:48 PM
you need a common module, and a js module that builds the common module as js. and there you produce the d.ts
christophsturm
05/05/2021, 7:00 PM
i think its probably much easier to just create the typescript types from kotlin source with a small tool that does exactly that.