Skip to content

Commit bb8f30c

Browse files
Accepted baselines.
1 parent bca691d commit bb8f30c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/baselines/reference/objectTypeWithStringAndNumberIndexSignatureToAny.errors.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(43,5): error TS2322: Type 'Obj' is not assignable to type 'NumberTo<any>'.
22
Index signature is missing in type 'Obj'.
3-
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(47,5): error TS2322: Type 'Obj' is not assignable to type 'StringAndNumberTo<any>'.
4-
Index signature is missing in type 'Obj'.
53
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(49,5): error TS2739: Type 'StringTo<any>' is missing the following properties from type 'Obj': hello, world
64
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(50,5): error TS2739: Type 'NumberTo<any>' is missing the following properties from type 'Obj': hello, world
75
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(51,5): error TS2739: Type 'StringAndNumberTo<any>' is missing the following properties from type 'Obj': hello, world
@@ -20,7 +18,7 @@ tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatur
2018
tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts(91,5): error TS2739: Type 'NumberTo<number>' is missing the following properties from type 'Obj': hello, world
2119

2220

23-
==== tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts (14 errors) ====
21+
==== tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatureToAny.ts (13 errors) ====
2422
// When checking compatibility between two types,
2523
// TypeScript should not require an index signature if
2624
// the target side index signature maps to `any` *and*
@@ -71,9 +69,6 @@ tests/cases/conformance/types/members/objectTypeWithStringAndNumberIndexSignatur
7169
bothToAny = sToAny;
7270
bothToAny = nToAny;
7371
bothToAny = someObj;
74-
~~~~~~~~~
75-
!!! error TS2322: Type 'Obj' is not assignable to type 'StringAndNumberTo<any>'.
76-
!!! error TS2322: Index signature is missing in type 'Obj'.
7772

7873
someObj = sToAny;
7974
~~~~~~~

0 commit comments

Comments
 (0)