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
Type '() => string | number' is not assignable to type '() => string'.
37
37
Type 'string | number' is not assignable to type 'string'.
38
-
Type 'number' is not assignable to type 'string'.
39
38
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(27,5): error TS2322: Type '{ 0: string; 1: number; }' is not assignable to type '[string]'.
40
39
Property 'length' is missing in type '{ 0: string; 1: number; }'.
41
40
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(28,5): error TS2322: Type '[string, number]' is not assignable to type '[number, string]'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/callWithSpread2.errors.txt
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,10 @@
1
1
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(30,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
2
2
Type 'string' is not assignable to type 'number'.
3
3
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(31,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
4
-
Type 'string' is not assignable to type 'number'.
5
4
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(32,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
6
-
Type 'string' is not assignable to type 'number'.
7
5
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(33,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
8
-
Type 'string' is not assignable to type 'number'.
9
6
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(34,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
10
-
Type 'string' is not assignable to type 'number'.
11
7
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(35,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
12
-
Type 'string' is not assignable to type 'number'.
13
8
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(36,1): error TS2556: Expected 1-3 arguments, but got a minimum of 0.
14
9
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(37,1): error TS2556: Expected 1-3 arguments, but got a minimum of 0.
15
10
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(38,1): error TS2556: Expected 1-3 arguments, but got a minimum of 0.
Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'Prop'.
10
10
Types of property 'children' are incompatible.
11
11
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
12
-
Type '(string | Element)[]' is not assignable to type 'Element[]'.
13
12
tests/cases/conformance/jsx/file.tsx(27,16): error TS2322: Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'IntrinsicAttributes & Prop'.
14
13
Type '{ a: 10; b: "hi"; children: (string | Element)[]; }' is not assignable to type 'Prop'.
15
14
Types of property 'children' are incompatible.
16
15
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
17
-
Type '(string | Element)[]' is not assignable to type 'Element[]'.
Property '2' is missing in type '[C, string | number]'.
19
19
tests/cases/conformance/types/tuple/contextualTypeWithTuple.ts(25,1): error TS2322: Type '[number, string | number]' is not assignable to type '[number, string]'.
20
20
Type 'string | number' is not assignable to type 'string'.
Type '{ prop: string | number; }' is not assignable to type '{ prop: number; }'.
8
8
Types of property 'prop' are incompatible.
9
9
Type 'string | number' is not assignable to type 'number'.
10
-
Type 'string' is not assignable to type 'number'.
11
10
tests/cases/conformance/types/union/contextualTypeWithUnionTypeObjectLiteral.ts(21,5): error TS2322: Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: string; anotherP: string; } | { prop: number; }'.
12
11
Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: number; }'.
13
12
Types of property 'prop' are incompatible.
14
13
Type 'string | number' is not assignable to type 'number'.
15
-
Type 'string' is not assignable to type 'number'.
16
14
tests/cases/conformance/types/union/contextualTypeWithUnionTypeObjectLiteral.ts(25,5): error TS2322: Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: string; anotherP: string; } | { prop: number; anotherP1: number; }'.
17
15
Type '{ prop: string | number; anotherP: string; }' is not assignable to type '{ prop: number; anotherP1: number; }'.
18
16
Types of property 'prop' are incompatible.
19
17
Type 'string | number' is not assignable to type 'number'.
20
-
Type 'string' is not assignable to type 'number'.
21
18
tests/cases/conformance/types/union/contextualTypeWithUnionTypeObjectLiteral.ts(29,5): error TS2322: Type '{ prop: string | number; anotherP: string; anotherP1: number; }' is not assignable to type '{ prop: string; anotherP: string; } | { prop: number; anotherP1: number; }'.
22
19
Type '{ prop: string | number; anotherP: string; anotherP1: number; }' is not assignable to type '{ prop: number; anotherP1: number; }'.
23
20
Types of property 'prop' are incompatible.
24
21
Type 'string | number' is not assignable to type 'number'.
25
-
Type 'string' is not assignable to type 'number'.
26
22
tests/cases/conformance/types/union/contextualTypeWithUnionTypeObjectLiteral.ts(57,5): error TS2322: Type '{ commonMethodDifferentReturnType: (a: string, b: number) => string | number; }' is not assignable to type 'I11 | I21'.
27
23
Type '{ commonMethodDifferentReturnType: (a: string, b: number) => string | number; }' is not assignable to type 'I21'.
28
24
Types of property 'commonMethodDifferentReturnType' are incompatible.
29
25
Type '(a: string, b: number) => string | number' is not assignable to type '(a: string, b: number) => number'.
30
26
Type 'string | number' is not assignable to type 'number'.
!!! error TS2322: Type '{ prop: string | number; anotherP: string; anotherP1: number; }' is not assignable to type '{ prop: number; anotherP1: number; }'.
91
83
!!! error TS2322: Types of property 'prop' are incompatible.
92
84
!!! error TS2322: Type 'string | number' is not assignable to type 'number'.
93
-
!!! error TS2322: Type 'string' is not assignable to type 'number'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/controlFlowIterationErrors.errors.txt
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,9 @@
1
1
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(11,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'string'.
2
2
Type 'number' is not assignable to type 'string'.
3
3
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(22,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'string'.
4
-
Type 'number' is not assignable to type 'string'.
5
4
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(34,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
6
5
Type 'string' is not assignable to type 'number'.
7
6
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(45,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
22
22
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(66,24): error TS2345: Argument of type '"size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
23
23
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(67,24): error TS2345: Argument of type '"name" | "size"' is not assignable to parameter of type '"name" | "width" | "height" | "visible"'.
24
-
Type '"size"' is not assignable to type '"name" | "width" | "height" | "visible"'.
25
24
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(72,5): error TS2536: Type 'keyof (T & U)' cannot be used to index type 'T | U'.
26
25
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(76,5): error TS2322: Type 'T | U' is not assignable to type 'T & U'.
0 commit comments