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
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(26,5): error TS2322: Type '{ 0: string; 1: number; length: 2; }' is not assignable to type '[number]'.
24
-
Property 'push' is missing in type '{ 0: string; 1: number; length: 2; }'.
24
+
Property 'pop' is missing in type '{ 0: string; 1: number; length: 2; }'.
25
25
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(27,5): error TS2322: Type '[string, number]' is not assignable to type '[string]'.
26
26
Types of property 'length' are incompatible.
27
27
Type '2' is not assignable to type '1'.
28
28
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(28,5): error TS2322: Type 'StrNum' is not assignable to type '[string]'.
29
29
Types of property 'length' are incompatible.
30
30
Type '2' is not assignable to type '1'.
31
31
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(29,5): error TS2322: Type '{ 0: string; 1: number; length: 2; }' is not assignable to type '[string]'.
32
-
Property 'push' is missing in type '{ 0: string; 1: number; length: 2; }'.
32
+
Property 'pop' is missing in type '{ 0: string; 1: number; length: 2; }'.
33
33
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(30,5): error TS2322: Type '[string, number]' is not assignable to type '[number, string]'.
34
34
Type 'string' is not assignable to type 'number'.
35
35
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(31,5): error TS2322: Type 'StrNum' is not assignable to type '[number, string]'.
36
36
Types of property '0' are incompatible.
37
37
Type 'string' is not assignable to type 'number'.
38
38
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(32,5): error TS2322: Type '{ 0: string; 1: number; length: 2; }' is not assignable to type '[number, string]'.
39
-
Property 'push' is missing in type '{ 0: string; 1: number; length: 2; }'.
39
+
Property 'pop' is missing in type '{ 0: string; 1: number; length: 2; }'.
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(33,5): error TS2322: Type 'number[]' is not assignable to type '[number, number, number]'.
12
12
Property '0' is missing in type 'number[]'.
13
13
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error TS2322: Type '(string | number)[]' is not assignable to type 'myArray'.
14
-
Types of property 'push' are incompatible.
15
-
Type '(...items: (string | number)[]) => number' is not assignable to type '(...items: Number[]) => number'.
16
-
Types of parameters 'items' and 'items' are incompatible.
17
-
Type 'Number' is not assignable to type 'string | number'.
18
-
Type 'Number' is not assignable to type 'number'.
19
-
'number' is a primitive, but 'Number' is a wrapper object. Prefer using 'number' when possible.
14
+
Types of property 'pop' are incompatible.
15
+
Type '() => string | number' is not assignable to type '() => Number'.
16
+
Type 'string | number' is not assignable to type 'Number'.
0 commit comments