Skip to content

Commit 31bbac3

Browse files
Merge pull request #6142 from Microsoft/refactorSignatureRelatability
Refactor signature relatability
2 parents 93c0be6 + 74293a4 commit 31bbac3

File tree

80 files changed

+129
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+129
-350
lines changed

src/compiler/checker.ts

Lines changed: 50 additions & 105 deletions
Large diffs are not rendered by default.

tests/baselines/reference/aliasAssignments.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/compiler/aliasAssignments_1.ts(3,1): error TS2322: Type 'number' is not assignable to type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"'.
2-
Property 'someClass' is missing in type 'Number'.
32
tests/cases/compiler/aliasAssignments_1.ts(5,1): error TS2322: Type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"' is not assignable to type 'number'.
43

54

@@ -9,7 +8,6 @@ tests/cases/compiler/aliasAssignments_1.ts(5,1): error TS2322: Type 'typeof "tes
98
x = 1; // Should be error
109
~
1110
!!! error TS2322: Type 'number' is not assignable to type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"'.
12-
!!! error TS2322: Property 'someClass' is missing in type 'Number'.
1311
var y = 1;
1412
y = moduleA; // should be error
1513
~
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts(3,5): error TS2322: Type 'number' is not assignable to type 'IArguments'.
2-
Property 'length' is missing in type 'Number'.
32

43

54
==== tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts (1 errors) ====
@@ -8,5 +7,4 @@ tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts(3,5): error TS
87
arguments = 10; /// This shouldnt be of type number and result in error.
98
~~~~~~~~~
109
!!! error TS2322: Type 'number' is not assignable to type 'IArguments'.
11-
!!! error TS2322: Property 'length' is missing in type 'Number'.
1210
}

tests/baselines/reference/arrayAssignmentTest1.errors.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ tests/cases/compiler/arrayAssignmentTest1.ts(70,1): error TS2322: Type 'C3[]' is
2626
Property 'C2M1' is missing in type 'C3'.
2727
tests/cases/compiler/arrayAssignmentTest1.ts(75,1): error TS2322: Type 'C2[]' is not assignable to type 'C3[]'.
2828
Type 'C2' is not assignable to type 'C3'.
29+
Property 'CM3M1' is missing in type 'C2'.
2930
tests/cases/compiler/arrayAssignmentTest1.ts(76,1): error TS2322: Type 'C1[]' is not assignable to type 'C3[]'.
3031
Type 'C1' is not assignable to type 'C3'.
32+
Property 'CM3M1' is missing in type 'C1'.
3133
tests/cases/compiler/arrayAssignmentTest1.ts(77,1): error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
3234
Type 'I1' is not assignable to type 'C3'.
35+
Property 'CM3M1' is missing in type 'I1'.
3336
tests/cases/compiler/arrayAssignmentTest1.ts(79,1): error TS2322: Type '() => C1' is not assignable to type 'any[]'.
3437
Property 'push' is missing in type '() => C1'.
3538
tests/cases/compiler/arrayAssignmentTest1.ts(80,1): error TS2322: Type '{ one: number; }' is not assignable to type 'any[]'.
@@ -159,14 +162,17 @@ tests/cases/compiler/arrayAssignmentTest1.ts(85,1): error TS2322: Type 'I1' is n
159162
~~~~~~
160163
!!! error TS2322: Type 'C2[]' is not assignable to type 'C3[]'.
161164
!!! error TS2322: Type 'C2' is not assignable to type 'C3'.
165+
!!! error TS2322: Property 'CM3M1' is missing in type 'C2'.
162166
arr_c3 = arr_c1_2; // should be an error - is
163167
~~~~~~
164168
!!! error TS2322: Type 'C1[]' is not assignable to type 'C3[]'.
165169
!!! error TS2322: Type 'C1' is not assignable to type 'C3'.
170+
!!! error TS2322: Property 'CM3M1' is missing in type 'C1'.
166171
arr_c3 = arr_i1_2; // should be an error - is
167172
~~~~~~
168173
!!! error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
169174
!!! error TS2322: Type 'I1' is not assignable to type 'C3'.
175+
!!! error TS2322: Property 'CM3M1' is missing in type 'I1'.
170176

171177
arr_any = f1; // should be an error - is
172178
~~~~~~~

tests/baselines/reference/arrayLiterals3.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error
1818
Types of parameters 'items' and 'items' are incompatible.
1919
Type 'number | string' is not assignable to type 'Number'.
2020
Type 'string' is not assignable to type 'Number'.
21-
Property 'toFixed' is missing in type 'String'.
2221

2322

2423
==== tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts (6 errors) ====
@@ -82,5 +81,4 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error
8281
!!! error TS2322: Types of parameters 'items' and 'items' are incompatible.
8382
!!! error TS2322: Type 'number | string' is not assignable to type 'Number'.
8483
!!! error TS2322: Type 'string' is not assignable to type 'Number'.
85-
!!! error TS2322: Property 'toFixed' is missing in type 'String'.
8684

tests/baselines/reference/arraySigChecking.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ tests/cases/compiler/arraySigChecking.ts(18,5): error TS2322: Type 'void[]' is n
44
tests/cases/compiler/arraySigChecking.ts(22,1): error TS2322: Type 'number[][]' is not assignable to type 'number[][][]'.
55
Type 'number[]' is not assignable to type 'number[][]'.
66
Type 'number' is not assignable to type 'number[]'.
7-
Property 'length' is missing in type 'Number'.
87

98

109
==== tests/cases/compiler/arraySigChecking.ts (3 errors) ====
@@ -39,7 +38,6 @@ tests/cases/compiler/arraySigChecking.ts(22,1): error TS2322: Type 'number[][]'
3938
!!! error TS2322: Type 'number[][]' is not assignable to type 'number[][][]'.
4039
!!! error TS2322: Type 'number[]' is not assignable to type 'number[][]'.
4140
!!! error TS2322: Type 'number' is not assignable to type 'number[]'.
42-
!!! error TS2322: Property 'length' is missing in type 'Number'.
4341

4442
function isEmpty(l: { length: number }) {
4543
return l.length === 0;

tests/baselines/reference/arrayTypeOfTypeOf.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,5): error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
2-
Property 'isArray' is missing in type 'Number'.
32
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,22): error TS1005: '=' expected.
43
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,30): error TS1109: Expression expected.
54
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(7,5): error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
@@ -16,7 +15,6 @@ tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(
1615
var xs3: typeof Array<number>;
1716
~~~
1817
!!! error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
19-
!!! error TS2322: Property 'isArray' is missing in type 'Number'.
2018
~
2119
!!! error TS1005: '=' expected.
2220
~

tests/baselines/reference/assignmentCompat1.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ tests/cases/compiler/assignmentCompat1.ts(4,1): error TS2322: Type '{ [index: st
33
tests/cases/compiler/assignmentCompat1.ts(6,1): error TS2322: Type '{ [index: number]: any; }' is not assignable to type '{ one: number; }'.
44
Property 'one' is missing in type '{ [index: number]: any; }'.
55
tests/cases/compiler/assignmentCompat1.ts(8,1): error TS2322: Type 'string' is not assignable to type '{ [index: string]: any; }'.
6-
Index signature is missing in type 'String'.
76
tests/cases/compiler/assignmentCompat1.ts(10,1): error TS2322: Type 'boolean' is not assignable to type '{ [index: number]: any; }'.
8-
Index signature is missing in type 'Boolean'.
97

108

119
==== tests/cases/compiler/assignmentCompat1.ts (4 errors) ====
@@ -25,11 +23,9 @@ tests/cases/compiler/assignmentCompat1.ts(10,1): error TS2322: Type 'boolean' is
2523
y = "foo"; // Error
2624
~
2725
!!! error TS2322: Type 'string' is not assignable to type '{ [index: string]: any; }'.
28-
!!! error TS2322: Index signature is missing in type 'String'.
2926
z = "foo"; // OK, string has numeric indexer
3027
z = false; // Error
3128
~
3229
!!! error TS2322: Type 'boolean' is not assignable to type '{ [index: number]: any; }'.
33-
!!! error TS2322: Index signature is missing in type 'Boolean'.
3430

3531

tests/baselines/reference/assignmentCompatWithCallSignatures4.errors.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
88
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts(53,9): error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
99
Types of parameters 'y' and 'y' are incompatible.
1010
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
11+
Types of parameters 'arg2' and 'arg2' are incompatible.
12+
Type 'Base' is not assignable to type '{ foo: number; }'.
13+
Types of property 'foo' are incompatible.
14+
Type 'string' is not assignable to type 'number'.
1115

1216

1317
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts (2 errors) ====
@@ -76,6 +80,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
7680
!!! error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
7781
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
7882
!!! error TS2322: Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
83+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
84+
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
85+
!!! error TS2322: Types of property 'foo' are incompatible.
86+
!!! error TS2322: Type 'string' is not assignable to type 'number'.
7987

8088

8189
var b10: <T extends Derived>(...x: T[]) => T;

tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,26 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
88
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(53,9): error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
99
Types of parameters 'y' and 'y' are incompatible.
1010
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
11+
Types of parameters 'arg2' and 'arg2' are incompatible.
12+
Type 'Base' is not assignable to type '{ foo: number; }'.
13+
Types of property 'foo' are incompatible.
14+
Type 'string' is not assignable to type 'number'.
1115
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(77,9): error TS2322: Type 'new <T>(x: (a: T) => T) => T[]' is not assignable to type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }'.
1216
Types of parameters 'x' and 'x' are incompatible.
1317
Type '(a: any) => any' is not assignable to type '{ new (a: number): number; new (a?: number): number; }'.
1418
Type '(a: any) => any' provides no match for the signature 'new (a: number): number'
1519
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(78,9): error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => T[]'.
1620
Types of parameters 'x' and 'x' are incompatible.
1721
Type '{ new (a: number): number; new (a?: number): number; }' is not assignable to type '(a: any) => any'.
22+
Type '{ new (a: number): number; new (a?: number): number; }' provides no match for the signature '(a: any): any'
1823
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(81,9): error TS2322: Type 'new <T>(x: (a: T) => T) => any[]' is not assignable to type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }'.
1924
Types of parameters 'x' and 'x' are incompatible.
2025
Type '(a: any) => any' is not assignable to type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }'.
2126
Type '(a: any) => any' provides no match for the signature 'new <T extends Derived>(a: T): T'
2227
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(82,9): error TS2322: Type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => any[]'.
2328
Types of parameters 'x' and 'x' are incompatible.
2429
Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' is not assignable to type '(a: any) => any'.
30+
Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' provides no match for the signature '(a: any): any'
2531

2632

2733
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts (6 errors) ====
@@ -90,6 +96,10 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
9096
!!! error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
9197
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
9298
!!! error TS2322: Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
99+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
100+
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
101+
!!! error TS2322: Types of property 'foo' are incompatible.
102+
!!! error TS2322: Type 'string' is not assignable to type 'number'.
93103

94104

95105
var b10: new <T extends Derived>(...x: T[]) => T;
@@ -124,6 +134,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
124134
!!! error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => T[]'.
125135
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
126136
!!! error TS2322: Type '{ new (a: number): number; new (a?: number): number; }' is not assignable to type '(a: any) => any'.
137+
!!! error TS2322: Type '{ new (a: number): number; new (a?: number): number; }' provides no match for the signature '(a: any): any'
127138

128139
var b17: new <T>(x: (a: T) => T) => any[];
129140
a17 = b17; // error
@@ -137,6 +148,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
137148
!!! error TS2322: Type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => any[]'.
138149
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
139150
!!! error TS2322: Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' is not assignable to type '(a: any) => any'.
151+
!!! error TS2322: Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' provides no match for the signature '(a: any): any'
140152
}
141153

142154
module WithGenericSignaturesInBaseType {

tests/baselines/reference/assignmentCompatability16.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability16.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: any[]; }'.
22
Types of property 'one' are incompatible.
33
Type 'number' is not assignable to type 'any[]'.
4-
Property 'length' is missing in type 'Number'.
54

65

76
==== tests/cases/compiler/assignmentCompatability16.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability16.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: any[]; }'.
1918
!!! error TS2322: Types of property 'one' are incompatible.
20-
!!! error TS2322: Type 'number' is not assignable to type 'any[]'.
21-
!!! error TS2322: Property 'length' is missing in type 'Number'.
19+
!!! error TS2322: Type 'number' is not assignable to type 'any[]'.

tests/baselines/reference/assignmentCompatability17.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability17.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: any[]; }'.
22
Types of property 'two' are incompatible.
33
Type 'string' is not assignable to type 'any[]'.
4-
Property 'push' is missing in type 'String'.
54

65

76
==== tests/cases/compiler/assignmentCompatability17.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability17.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: any[]; }'.
1918
!!! error TS2322: Types of property 'two' are incompatible.
20-
!!! error TS2322: Type 'string' is not assignable to type 'any[]'.
21-
!!! error TS2322: Property 'push' is missing in type 'String'.
19+
!!! error TS2322: Type 'string' is not assignable to type 'any[]'.

tests/baselines/reference/assignmentCompatability18.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability18.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: number[]; }'.
22
Types of property 'one' are incompatible.
33
Type 'number' is not assignable to type 'number[]'.
4-
Property 'length' is missing in type 'Number'.
54

65

76
==== tests/cases/compiler/assignmentCompatability18.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability18.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: number[]; }'.
1918
!!! error TS2322: Types of property 'one' are incompatible.
20-
!!! error TS2322: Type 'number' is not assignable to type 'number[]'.
21-
!!! error TS2322: Property 'length' is missing in type 'Number'.
19+
!!! error TS2322: Type 'number' is not assignable to type 'number[]'.

tests/baselines/reference/assignmentCompatability19.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability19.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: number[]; }'.
22
Types of property 'two' are incompatible.
33
Type 'string' is not assignable to type 'number[]'.
4-
Property 'push' is missing in type 'String'.
54

65

76
==== tests/cases/compiler/assignmentCompatability19.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability19.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: number[]; }'.
1918
!!! error TS2322: Types of property 'two' are incompatible.
20-
!!! error TS2322: Type 'string' is not assignable to type 'number[]'.
21-
!!! error TS2322: Property 'push' is missing in type 'String'.
19+
!!! error TS2322: Type 'string' is not assignable to type 'number[]'.

0 commit comments

Comments
 (0)