Trying out the typescript definition generation fr...
# javascript
a
Trying out the typescript definition generation from the IR compiler. It seems that there is a fair bit of code that doesn't seem all that useful, like the
component1()
methods used in destructuring - which I can't see being used in typescript or javascript. Are we likely to see cleaner typescript definitions from multiplatform kotlin libs as this shapes up towards GA status? Or am I perhaps just missing something?
2
Would also be nice to see those namespaces disappear. Exporting namespaces from a module is discouraged everywhere.
t
a
Yes, that's the issue. I'm guess from the "to be discussed" status, that no-one knows the answer yet. 🙂
t
Good solution is known Root import = webpack optimization enabled (official Google recommendation)
a
so, we get rid of them via DCE?
t
Both optimizations required * DCE for Kotlin specific * Terser for all other
👍 1