From 345f0fbe5cdaa71af067c7072537f1823fe4ada5 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 10 Dec 2021 09:12:21 +1100 Subject: feat(cli): update to TypeScript 4.5 (#12410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/dts/lib.es2021.promise.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cli/dts/lib.es2021.promise.d.ts') diff --git a/cli/dts/lib.es2021.promise.d.ts b/cli/dts/lib.es2021.promise.d.ts index 6a56c5512..e3db43ffa 100644 --- a/cli/dts/lib.es2021.promise.d.ts +++ b/cli/dts/lib.es2021.promise.d.ts @@ -39,5 +39,12 @@ interface PromiseConstructor { * @param values An array or iterable of Promises. * @returns A new Promise. */ - any(values: (T | PromiseLike)[] | Iterable>): Promise + any(values: T): Promise>; + + /** + * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm. + * @param values An array or iterable of Promises. + * @returns A new Promise. + */ + any(values: Iterable>): Promise> } -- cgit v1.2.3