Hi, all! We’re happy to announce that our reposit...
# javascript
b
Hi, all! We’re happy to announce that our repository for Kotlin/JS declaration reached EAP stage. You can find information about how to use it and how to contribute there inside README.md in the GitHub repository: https://github.com/Kotlin/js-externals. Right now it contains declarations only for few libraries: * JQuery (1.10.0, 2.0.0, 3.2.0) * React (15.6.0, 16.0.0) * React Native (0.52.0) But we going to add more, and hope to your help. How can you help? * Try it and give us feedback. * Report any issues you find in existing declarations. * Or fix them and send a Pull Request! * Request or vote for declarations that are missing. * Or create them yourself and send a Pull Request! Please feel free to ask any questions here! Have nice Kotlin!
K 1
🎉 16
f
cc @Leonid Khachaturov
Let's find a way to merge https://github.com/JetBrains/kotlin-wrappers into that
👍 3
b
@Filipp Riabchun yes, let’s discuss it, I’ve created issue to add declarations in
js-externals
but used in
kotlin-wrappers
(mocha and react-dom)
f
the main issue would be differences in React declarations
n
@bashor Did you create the declarations by hand? I tried out ts2kt in the past and it seems to lack support for import declarations and did not generate declarations for basic functions. E.g. I tried converting react-dom and the result was only the Renderer with lots of compilation errors.
b
@niklas Most of work was done using
ts2kt
, some declarations was fixed manually after convertation. But we going to fix related issues in the convertor.
👍 2
u
Do you guys have an example project for react native using these wrappers?
🙏 2
b
@uli not yet
c
@bashor What did you use as your source for
ts2kt
to generate these? I’ve tried it on the Definitely Typed definitions and don’t get anything near like what you’ve got.
b
@chadmorrow In a header of any index.kt you can find exact reference to original declaration
and make sure that you use the latest version of ts2kt
c
Doh, I forgot it showed that in the header. Sorry