Is there any reason that the `kotlin.js.Promise` c...
# javascript
a
Is there any reason that the
kotlin.js.Promise
class isn’t exported as a real JS
Promise
? Feels pretty important and I haven’t seen much info about that
Ah, just saw https://kotlinlang.slack.com/archives/C0B8L3U69/p1644729960683399 Can someone from JB confirm that this is the reason kotlin.js.Promise isn’t currently exported?
a
Ah nice, I was about to write somethink similar for
kotlin.js.Promise
specifically, but it’s good to know that there are a few others in the
kotlin.js
package too 🙂
I was also going to rename
any
to
unknown
so we get more type safety
👍 1
t
We can add this logic in plugin
h
@ankushg Interesting, didn't know
unknown
. What do you want to map to
unknown
?
t
h
Thanks
So adding this to KFC plugin would be very straightforward.
t
I’m ready for PR review! 🙂