Skip to content

Commit b3492a9

Browse files
Accepted baselines.
1 parent 46283e2 commit b3492a9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/baselines/reference/mappedTypeWithAny.errors.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
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 '{ [x: string]: string; }' is not assignable to type '[any, 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.
56

67

78
==== tests/cases/conformance/types/mapped/mappedTypeWithAny.ts (4 errors) ====
@@ -65,4 +66,5 @@ tests/cases/conformance/types/mapped/mappedTypeWithAny.ts(53,5): error TS2322: T
6566
declare function stringifyPair<T extends readonly [any, any]>(arr: T): { -readonly [K in keyof T]: string };
6667
let def: [any, any] = stringifyPair(void 0 as any);
6768
~~~
68-
!!! error TS2322: Type '{ [x: string]: string; }' is not assignable to type '[any, any]'.
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.

tests/baselines/reference/mappedTypeWithAny.types

+1-1
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) : { [x: string]: string; }
122+
>stringifyPair(void 0 as any) : 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)