2
0
Эх сурвалжийг харах

change js.Thenable to something that can be used to actually call the `then` method. hope it won't break stuff

Dan Korostelev 9 жил өмнө
parent
commit
b5e561dc01
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      std/js/Promise.hx

+ 1 - 1
std/js/Promise.hx

@@ -49,5 +49,5 @@ extern class Promise<T>
 typedef PromiseCallback<T, TOut> = EitherType<T -> TOut, T -> Promise<TOut>>;
 
 typedef Thenable<T> = {
-	then : EitherType<(T -> Void) -> (Dynamic -> Void) -> Void, (T -> Void) -> Void>
+	function then(resolve:T->Void, ?reject:Dynamic->Void):Void;
 }