summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/dts/lib.es2021.promise.d.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.es2021.promise.d.ts b/cli/tsc/dts/lib.es2021.promise.d.ts
index 6ef98b638..5212c8d3e 100644
--- a/cli/tsc/dts/lib.es2021.promise.d.ts
+++ b/cli/tsc/dts/lib.es2021.promise.d.ts
@@ -45,4 +45,10 @@ interface PromiseConstructor {
* @returns A new Promise.
*/
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
+
+ /**
+ * Creates a Promise that can be resolved or rejected using provided functions.
+ * @returns An object containing `promise` promise object, `resolve` and `reject` functions.
+ */
+ withResolvers<T>(): { promise: Promise<T>, resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void };
}