Skip to content

Commit f342c82

Browse files
Accepted baselines.
1 parent f01ae16 commit f342c82

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/baselines/reference/mappedTypeWithAny.errors.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(23,16): error TS2339: Property 'notAValue' does not exist on type 'Data'.
22
tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(45,5): error TS2740: Type 'Objectish<any>' is missing the following properties from type 'any[]': length, pop, push, concat, and 16 more.
33
tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(46,5): error TS2322: Type 'Objectish<any>' is not assignable to type 'any[]'.
4-
tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(53,5): error TS2322: Type 'string[]' is not assignable to type '[any, any]'.
5-
Target requires 2 element(s) but source may have fewer.
4+
tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(53,5): error TS2322: Type '{ [x: string]: string; }' is not assignable to type '[any, any]'.
65

76

87
==== tests/cases/conformance/types/mapped/mappedTypeWithAny.ts (4 errors) ====
@@ -66,5 +65,4 @@ tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(53,5): error TS2322: T
6665
declare function stringifyPair<T extends readonly [any, any]>(arr: T): { -readonly [K in keyof T]: string };
6766
let def: [any, any] = stringifyPair(void 0 as any);
6867
~~~
69-
!!! error TS2322: Type 'string[]' is not assignable to type '[any, any]'.
70-
!!! error TS2322: Target requires 2 element(s) but source may have fewer.
68+
!!! error TS2322: Type '{ [x: string]: string; }' is not assignable to type '[any, any]'.

tests/baselines/reference/mappedTypeWithAny.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ declare function stringifyPair<T extends readonly [any, any]>(arr: T): { -readon
119119

120120
let def: [any, any] = stringifyPair(void 0 as any);
121121
>def : [any, any]
122-
>stringifyPair(void 0 as any) : string[]
122+
>stringifyPair(void 0 as any) : { [x: string]: string; }
123123
>stringifyPair : <T extends readonly [any, any]>(arr: T) => { -readonly [K in keyof T]: string; }
124124
>void 0 as any : any
125125
>void 0 : undefined

0 commit comments

Comments
 (0)