浏览代码

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

Dan Korostelev 9 年之前
父节点
当前提交
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;
 }