Explorar el Código

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

Dan Korostelev hace 9 años
padre
commit
b5e561dc01
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 }