I am exactly in the same situation, currently all ...
# javascript
d
I am exactly in the same situation, currently all business logic in kotlin and all views in VueJs; but it is a pain to recreate Kotlin object into typesciprt ones: I did not try this project yet though: https://github.com/ntrrgc/ts-generator
j
This seems like a nice case for an annotation processor, right? Like, place some annotation in your models and it would trigger the ts-generator could create the TS files in a pre configured folder.
d
Well, I think you can also already use the @JsName annotation
j
I gave it a try... and looks like we don't have enough info at the annotation processor do access the
KClass
the ts-generator needs... It seems it would be possible to re-write the library using the info available in the annotation processor.. but it seems more than I am able to do right now..