diff options
Diffstat (limited to 'cli/dts/lib.es2015.promise.d.ts')
-rw-r--r-- | cli/dts/lib.es2015.promise.d.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/dts/lib.es2015.promise.d.ts b/cli/dts/lib.es2015.promise.d.ts index 68dcd8cfe..0f3f59cbb 100644 --- a/cli/dts/lib.es2015.promise.d.ts +++ b/cli/dts/lib.es2015.promise.d.ts @@ -30,7 +30,7 @@ interface PromiseConstructor { * a resolve callback used to resolve the promise with a value or the result of another promise, * and a reject callback used to reject the promise with a provided reason or error. */ - new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; + new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>; /** * Creates a Promise that is resolved with an array of results when all of the provided Promises @@ -134,17 +134,17 @@ interface PromiseConstructor { reject<T = never>(reason?: any): Promise<T>; /** + * Creates a new resolved promise. + * @returns A resolved promise. + */ + resolve(): Promise<void>; + + /** * Creates a new resolved promise for the provided value. * @param value A promise. * @returns A promise whose internal state matches the provided promise. */ resolve<T>(value: T | PromiseLike<T>): Promise<T>; - - /** - * Creates a new resolved promise . - * @returns A resolved promise. - */ - resolve(): Promise<void>; } declare var Promise: PromiseConstructor; |