Join Slack
Powered by
Is there any documentation available for the kotli...
# kotlin-native
n
napperley
08/09/2018, 1:30 AM
Is there any documentation available for the
kotlinx.interop
(supports DOM operations)/*kotlinx.wasm* (covers JS interop) libraries, and the
jsinterop
tool?
napperley
08/09/2018, 4:10 AM
Found out that Kotlin Native uses Web IDL (
https://en.wikipedia.org/wiki/Web_IDL
) to generate the Web APIs (
https://github.com/JetBrains/kotlin-native/blob/f703877160861d04da68b884f7d696dbc6493a12/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/idl/dom.kt
), which covers interop with JS APIs.
napperley
08/09/2018, 4:13 AM
This source file for the stub generator provides some limited information on the use of Web IDL with the WASM support:
https://github.com/JetBrains/kotlin-native/blob/f703877160861d04da68b884f7d696dbc6493a12/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt
napperley
08/09/2018, 4:33 AM
Under the impression that there is no straightforward way to add support for additional JS APIs in a piecemeal way (
https://github.com/JetBrains/kotlin-native/issues/1394#issuecomment-373363744
).
2
Views
Open in Slack
Previous
Next