Also, you may need to add some functions to this c...
# javascript
k
Also, you may need to add some functions to this class:
Copy code
@native class Promise<T>(f: (resolve: (T) -> Unit, reject: (dynamic) -> Unit) -> Unit) {
    @native fun then(onFulfilled: (T) -> Unit, onRejected: (dynamic) -> Unit = { }): Promise<T> = noImpl
}