8

Is it currently possible to convert d.ts files to Kotlin? I've found a post which mentions that Kotlin devs are working on a converter, but I'm not sure if the project was dropped or is it available in some kind of beta state. This project (apart from being undocumented) seems to use an outdated compiler, uses KotlinJS features (?) and feels like a little bit more complicated than a simple converter that consumes a file and outputs another.

6
  • As far as I know, KotlinJS (kotlin -> js compiler) was delayed in favor of a stable release of Kotlin language itself. That can be a good indicator that an typescript -> koltin compiler is not planned to the next steps. Commented Jan 26, 2016 at 15:55
  • @marcospereira Well, KotlinJS already works. Kinda. You can compile Kotlin files to JavaScript - and I'll take Kotlin over JS without hesitation (especially since you can easily share sources with the server). I think you meant they delayed polishing of the compiler and/or new features/libraries that they planned for KotlinJS. Commented Jan 26, 2016 at 15:59
  • yes, that was what I meant. A stable/final/polished release of KotlinJS was delayed in favor of a stable/final/polished release of Kotlin itself. ;-) Commented Jan 26, 2016 at 16:00
  • @marcospereira Still, I wanted to make sure before writing a converter myself. I'm pretty sure it will take less time to write such converter myself than struggle with the dynamic/@native syntax or convert libraries manually. (Note: I might regret that decision.) Commented Jan 26, 2016 at 16:04
  • @JustACluelessNewbie, feel free to ask me any question about convertor or kotlin.js. And probably kotlinlang.slack.com is more right/convenient place for discuss about all that. Commented Jan 28, 2016 at 14:02

1 Answer 1

8

The project that you've linked to is the best thing currently available. We plan to resume work on the converter and bring it to production quality (with support, documentation etc.) after Kotlin 1.0 is released.

Sign up to request clarification or add additional context in comments.

1 Comment

News Flash: Kotlin 1.0 (and 2.0!) has been released. Can you update your answer?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.