Closed lppedd closed 4 months ago
Thenable
- just alias of PromiseLike
, isn't it?
@turansky I'd say you're right at this point, however having a separate (real) type could be useful anyway.
however having a separate (real) type could be useful anyway
If you have use cases for PromiseLike
- please provide them.
VS Code types have a
Thenable
interface which extendsPromiseLike
However it won't work in Kotlin as
PromiseLike
has been declaredsealed
.https://github.com/JetBrains/kotlin-wrappers/blob/df02b39cff1a4d7ba77344514e9b85cc90be4f26/kotlin-js/src/jsMain/kotlin/js/promise/PromiseLike.kt#L5
Is there a reason for it to be
sealed
, or can we justopen
it?