konsoletyper
@native class Promise<T>(f: (resolve: (T) -> Unit, reject: (dynamic) -> Unit) -> Unit) { @native fun then(onFulfilled: (T) -> Unit, onRejected: (dynamic) -> Unit = { }): Promise<T> = noImpl }