4 ms·
It exports typescript typing too. We are successfully using it for sharing businesses code from our backend with our frontend! Even models can be shared.
by The_rationalist 5y ago
It exports typescript typing too. We are successfully using it for sharing businesses code from our backend with our frontend! Even models can be shared.
- richbell 5y ago> It exports typescript typing too... Even models can be shared. Do you know if this is possible with Kotlin/JVM, or only Kotlin/JS? We've been sharing models via Kotlin/JVM -> Open API Spec -> Open API Generator, which is far from perfect or painless, and I was looking at alternatives like https://github.com/ntrrgc/ts-generator https://github.com/ntrrgc/ts-generator.
- crummy 5y agoWe use ts-generator and are pretty happy with it. Better than our JSweet solution we used earlier. We just use the type generation aspect, not the http client stuff.
- The_rationalist 5y agoKotlin jvm cannot but you transform your kotlin jvm easily into kotlin multiplatform code. Kotlin multiplatform is not the same thing as kotlin js and can be used both by jvm and js code. You can also leverage the expect/external/actual keywords