summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2015.promise.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-07 12:59:59 -0500
committerGitHub <noreply@github.com>2022-12-07 12:59:59 -0500
commitf4385866f89e0abd3f5f1b0281abf00f1c562be9 (patch)
tree3400cc38b77f1217250d671481a4113e141a80f9 /cli/tsc/dts/lib.es2015.promise.d.ts
parent791e623c321dd9cc73263a64aa848af0111a812b (diff)
feat: upgrade to TypeScript 4.9.3 (#16973)
Updated from: https://github.com/denoland/TypeScript/pull/2
Diffstat (limited to 'cli/tsc/dts/lib.es2015.promise.d.ts')
-rw-r--r--cli/tsc/dts/lib.es2015.promise.d.ts13
1 files changed, 9 insertions, 4 deletions
diff --git a/cli/tsc/dts/lib.es2015.promise.d.ts b/cli/tsc/dts/lib.es2015.promise.d.ts
index 57eea0f6b..685f7164f 100644
--- a/cli/tsc/dts/lib.es2015.promise.d.ts
+++ b/cli/tsc/dts/lib.es2015.promise.d.ts
@@ -41,7 +41,7 @@ interface PromiseConstructor {
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
// see: lib.es2015.iterable.d.ts
- // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
+ // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
@@ -52,7 +52,7 @@ interface PromiseConstructor {
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
// see: lib.es2015.iterable.d.ts
- // race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
+ // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
/**
* Creates a new rejected promise for the provided reason.
@@ -66,13 +66,18 @@ interface PromiseConstructor {
* @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>;
+ resolve<T>(value: T): Promise<Awaited<T>>;
+ /**
+ * 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<Awaited<T>>;
}
declare var Promise: PromiseConstructor;