using 2.2.0-RC2: I've noticed this warning that ap...
# javascript
b
using 2.2.0-RC2: I've noticed this warning that appears for anything using @JsExport that has a covariant return type marked with out; this wasn't an issue before, any idea why this happens? removing the out makes it go away
👀 1
a
Oh, it's a regression. Could you please create an issue on YouTrack? I think it's happening because of the rework of checks inside of return types (to support
Promise<Unit>
case)
b
thank you color 2
is there a reason why Tuple can not be destructured anymore https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-js/src/commonMain/kotlin/js/array/Tuple.kt It's a massive pain with tons of changes required in my code; don't understand why we need unsafe getters when it's specifically typed as a tuple (PS: don't understand the reason to do that from the linked slack chat as well)
t
Main reason - limitations of WasmJS
Now you should add additional imports for
component1
and
component2
extensions
Copy code
import js.array.component1
import js.array.component2
❤️ 1