浏览代码

Fix let FutureStatic inherit from PromiseConstructor

Lennart Grahl 6 年之前
父节点
当前提交
de9a5b7117
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/types/future.d.ts

+ 1 - 1
src/types/future.d.ts

@@ -36,7 +36,7 @@ interface Future<T> extends Promise<T> {
     reject(reason?: any): void;
 }
 
-interface FutureStatic {
+interface FutureStatic extends PromiseConstructor {
     new<T>(executor?: (resolveFn: (value?: T | PromiseLike<T>) => void,
                        rejectFn: (reason?: any) => void) => void,
     ): Future<T>