Skip to content

Commit 99d9b56

Browse files
Accepted baselines.
1 parent eebb1d4 commit 99d9b56

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

tests/baselines/reference/promiseAllOnAny01.errors.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/baselines/reference/promiseAllOnAny01.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ async function foo(x: any) {
44
>x : any
55

66
let abc = await Promise.all(x);
7-
>abc : { [x: string]: any; }
8-
>await Promise.all(x) : { [x: string]: any; }
9-
>Promise.all(x) : Promise<{ [x: string]: any; }>
7+
>abc : any[]
8+
>await Promise.all(x) : any[]
9+
>Promise.all(x) : Promise<any[]>
1010
>Promise.all : <T extends readonly unknown[] | []>(values: T) => Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>
1111
>Promise : PromiseConstructor
1212
>all : <T extends readonly unknown[] | []>(values: T) => Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>
1313
>x : any
1414

1515
let result: any[] = abc;
1616
>result : any[]
17-
>abc : { [x: string]: any; }
17+
>abc : any[]
1818

1919
return result;
2020
>result : any[]

0 commit comments

Comments
 (0)