You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/reverseMappedTypeIntersectionConstraint.errors.txt
+6-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
reverseMappedTypeIntersectionConstraint.ts(22,3): error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: string; states: { a: { entry: string; }; }; }'.
2
-
reverseMappedTypeIntersectionConstraint.ts(32,3): error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: string; states: { a: { entry: string; }; }; }'.
1
+
reverseMappedTypeIntersectionConstraint.ts(19,7): error TS2322: Type '"bar"' is not assignable to type '"foo"'.
2
+
reverseMappedTypeIntersectionConstraint.ts(32,3): error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: "foo"; states: { a: { entry: "foo"; }; }; }'.
3
3
reverseMappedTypeIntersectionConstraint.ts(43,3): error TS2353: Object literal may only specify known properties, and 'z' does not exist in type '{ x: number; y: "y"; }'.
4
4
reverseMappedTypeIntersectionConstraint.ts(59,7): error TS2322: Type '{ [K in keyof T & keyof Stuff]: T[K]; }' is not assignable to type 'T'.
5
5
'{ [K in keyof T & keyof Stuff]: T[K]; }' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'Stuff'.
!!! error TS2322: Type '"bar"' is not assignable to type '"foo"'.
42
+
!!! related TS6500 reverseMappedTypeIntersectionConstraint.ts:2:3: The expected type comes from property 'entry' which is declared here on type 'StateConfig<"foo">'
40
43
},
41
44
},
42
45
extra: 12,
43
-
~~~~~
44
-
!!! error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: string; states: { a: { entry: string; }; }; }'.
!!! error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: string; states: { a: { entry: string; }; }; }'.
57
+
!!! error TS2353: Object literal may only specify known properties, and 'extra' does not exist in type '{ entry: "foo"; states: { a: { entry: "foo"; }; }; }'.
0 commit comments