From 99d9b5657d0bda1115609f07cfb9531cb8040318 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 5 Oct 2021 01:14:28 +0000 Subject: [PATCH] Accepted baselines. --- .../baselines/reference/promiseAllOnAny01.errors.txt | 11 ----------- tests/baselines/reference/promiseAllOnAny01.types | 8 ++++---- 2 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 tests/baselines/reference/promiseAllOnAny01.errors.txt diff --git a/tests/baselines/reference/promiseAllOnAny01.errors.txt b/tests/baselines/reference/promiseAllOnAny01.errors.txt deleted file mode 100644 index 7007a5a6d01a9..0000000000000 --- a/tests/baselines/reference/promiseAllOnAny01.errors.txt +++ /dev/null @@ -1,11 +0,0 @@ -tests/cases/compiler/promiseAllOnAny01.ts(3,9): error TS2740: Type '{ [x: string]: any; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more. - - -==== tests/cases/compiler/promiseAllOnAny01.ts (1 errors) ==== - async function foo(x: any) { - let abc = await Promise.all(x); - let result: any[] = abc; - ~~~~~~ -!!! error TS2740: Type '{ [x: string]: any; }' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more. - return result; - } \ No newline at end of file diff --git a/tests/baselines/reference/promiseAllOnAny01.types b/tests/baselines/reference/promiseAllOnAny01.types index e3824804b0952..c0431773e66d5 100644 --- a/tests/baselines/reference/promiseAllOnAny01.types +++ b/tests/baselines/reference/promiseAllOnAny01.types @@ -4,9 +4,9 @@ async function foo(x: any) { >x : any let abc = await Promise.all(x); ->abc : { [x: string]: any; } ->await Promise.all(x) : { [x: string]: any; } ->Promise.all(x) : Promise<{ [x: string]: any; }> +>abc : any[] +>await Promise.all(x) : any[] +>Promise.all(x) : Promise >Promise.all : (values: T) => Promise<{ -readonly [P in keyof T]: Awaited; }> >Promise : PromiseConstructor >all : (values: T) => Promise<{ -readonly [P in keyof T]: Awaited; }> @@ -14,7 +14,7 @@ async function foo(x: any) { let result: any[] = abc; >result : any[] ->abc : { [x: string]: any; } +>abc : any[] return result; >result : any[]