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/arrayLiteralTypeInference.errors.txt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
tests/cases/compiler/arrayLiteralTypeInference.ts(13,5): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type 'Action[]'.
2
2
Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type 'Action'.
3
3
Type '{ id: number; trueness: boolean; }' is not assignable to type 'Action'.
4
-
Property 'trueness' does not exist on type 'Action'.
4
+
Object literal may only specify known properties and 'trueness' does not exist in type 'Action'.
5
5
tests/cases/compiler/arrayLiteralTypeInference.ts(29,5): error TS2322: Type '({ id: number; trueness: boolean; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
6
6
Type '{ id: number; trueness: boolean; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
7
7
Type '{ id: number; trueness: boolean; }' is not assignable to type '{ id: number; }'.
8
-
Property 'trueness' does not exist on type '{ id: number; }'.
8
+
Object literal may only specify known properties and 'trueness' does not exist in type '{ id: number; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignmentCompatBug5.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
tests/cases/compiler/assignmentCompatBug5.ts(2,6): error TS2345: Argument of type '{ b: number; }' is not assignable to parameter of type '{ a: number; }'.
2
-
Property 'b' does not exist on type '{ a: number; }'.
2
+
Object literal may only specify known properties and 'b' does not exist in type '{ a: number; }'.
3
3
tests/cases/compiler/assignmentCompatBug5.ts(5,6): error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'number[]'.
4
4
Type 'string' is not assignable to type 'number'.
5
5
tests/cases/compiler/assignmentCompatBug5.ts(8,6): error TS2345: Argument of type '(s: string) => void' is not assignable to parameter of type '(n: number) => number'.
@@ -14,7 +14,7 @@ tests/cases/compiler/assignmentCompatBug5.ts(9,6): error TS2345: Argument of typ
14
14
foo1({ b: 5 });
15
15
~~~~~~~~
16
16
!!! error TS2345: Argument of type '{ b: number; }' is not assignable to parameter of type '{ a: number; }'.
17
-
!!! error TS2345: Property 'b' does not exist on type '{ a: number; }'.
17
+
!!! error TS2345: Object literal may only specify known properties and 'b' does not exist in type '{ a: number; }'.
tests/cases/compiler/contextualTyping12.ts(1,13): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
2
2
Type '{ id: number; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
3
3
Type '{ id: number; name: string; }' is not assignable to type '{ id: number; }'.
4
-
Property 'name' does not exist on type '{ id: number; }'.
4
+
Object literal may only specify known properties and 'name' does not exist in type '{ id: number; }'.
tests/cases/compiler/contextualTyping20.ts(1,36): error TS2322: Type '({ id: number; } | { id: number; name: string; })[]' is not assignable to type '{ id: number; }[]'.
2
2
Type '{ id: number; } | { id: number; name: string; }' is not assignable to type '{ id: number; }'.
3
3
Type '{ id: number; name: string; }' is not assignable to type '{ id: number; }'.
4
-
Property 'name' does not exist on type '{ id: number; }'.
4
+
Object literal may only specify known properties and 'name' does not exist in type '{ id: number; }'.
0 commit comments