|
1 | 1 | tests/cases/conformance/types/rest/genericRestParameters1.ts(22,1): error TS2556: Expected 3 arguments, but got 1 or more.
|
2 | 2 | tests/cases/conformance/types/rest/genericRestParameters1.ts(31,1): error TS2556: Expected 3 arguments, but got 1 or more.
|
3 | 3 | tests/cases/conformance/types/rest/genericRestParameters1.ts(133,40): error TS2344: Type '(...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
|
| 4 | + Types of parameters 'args' and 'args' are incompatible. |
| 5 | + Type 'any[]' is not assignable to type 'T'. |
4 | 6 | tests/cases/conformance/types/rest/genericRestParameters1.ts(134,51): error TS2344: Type 'new (...args: T) => void' does not satisfy the constraint 'new (...args: any[]) => any'.
|
| 7 | + Types of parameters 'args' and 'args' are incompatible. |
| 8 | + Type 'any[]' is not assignable to type 'T'. |
5 | 9 | tests/cases/conformance/types/rest/genericRestParameters1.ts(135,23): error TS2344: Type 'Function' does not satisfy the constraint '(...args: any[]) => any'.
|
6 | 10 | Type 'Function' provides no match for the signature '(...args: any[]): any'.
|
7 | 11 | tests/cases/conformance/types/rest/genericRestParameters1.ts(164,1): error TS2322: Type '(a: never) => void' is not assignable to type '(...args: any[]) => void'.
|
@@ -149,9 +153,13 @@ tests/cases/conformance/types/rest/genericRestParameters1.ts(164,1): error TS232
|
149 | 153 | type T07<T extends any[]> = Parameters<(...args: T) => void>;
|
150 | 154 | ~~~~~~~~~~~~~~~~~~~~
|
151 | 155 | !!! error TS2344: Type '(...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
|
| 156 | +!!! error TS2344: Types of parameters 'args' and 'args' are incompatible. |
| 157 | +!!! error TS2344: Type 'any[]' is not assignable to type 'T'. |
152 | 158 | type T08<T extends any[]> = ConstructorParameters<new (...args: T) => void>;
|
153 | 159 | ~~~~~~~~~~~~~~~~~~~~~~~~
|
154 | 160 | !!! error TS2344: Type 'new (...args: T) => void' does not satisfy the constraint 'new (...args: any[]) => any'.
|
| 161 | +!!! error TS2344: Types of parameters 'args' and 'args' are incompatible. |
| 162 | +!!! error TS2344: Type 'any[]' is not assignable to type 'T'. |
155 | 163 | type T09 = Parameters<Function>;
|
156 | 164 | ~~~~~~~~
|
157 | 165 | !!! error TS2344: Type 'Function' does not satisfy the constraint '(...args: any[]) => any'.
|
|
0 commit comments