Ver código fonte

Fix let FutureStatic inherit from PromiseConstructor

Lennart Grahl 6 anos atrás
pai
commit
de9a5b7117
1 arquivos alterados com 1 adições e 1 exclusões
  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>