Skip to content

Commit

Permalink
Accepted baselines.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser authored Oct 5, 2021
1 parent eebb1d4 commit 99d9b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
11 changes: 0 additions & 11 deletions tests/baselines/reference/promiseAllOnAny01.errors.txt

This file was deleted.

8 changes: 4 additions & 4 deletions tests/baselines/reference/promiseAllOnAny01.types
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ 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<any[]>
>Promise.all : <T extends readonly unknown[] | []>(values: T) => Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>
>Promise : PromiseConstructor
>all : <T extends readonly unknown[] | []>(values: T) => Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>
>x : any

let result: any[] = abc;
>result : any[]
>abc : { [x: string]: any; }
>abc : any[]

return result;
>result : any[]
Expand Down

0 comments on commit 99d9b56

Please sign in to comment.