Skip to content

Commit e6a4e90

Browse files
authored
Update baselines to fix build (#26822)
We started elaborating more errors in the 3 weeks since this PR was opened.
1 parent acc3502 commit e6a4e90

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/baselines/reference/genericRestParameters1.errors.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
tests/cases/conformance/types/rest/genericRestParameters1.ts(22,1): error TS2556: Expected 3 arguments, but got 1 or more.
22
tests/cases/conformance/types/rest/genericRestParameters1.ts(31,1): error TS2556: Expected 3 arguments, but got 1 or more.
33
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'.
46
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'.
59
tests/cases/conformance/types/rest/genericRestParameters1.ts(135,23): error TS2344: Type 'Function' does not satisfy the constraint '(...args: any[]) => any'.
610
Type 'Function' provides no match for the signature '(...args: any[]): any'.
711
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
149153
type T07<T extends any[]> = Parameters<(...args: T) => void>;
150154
~~~~~~~~~~~~~~~~~~~~
151155
!!! 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'.
152158
type T08<T extends any[]> = ConstructorParameters<new (...args: T) => void>;
153159
~~~~~~~~~~~~~~~~~~~~~~~~
154160
!!! 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'.
155163
type T09 = Parameters<Function>;
156164
~~~~~~~~
157165
!!! error TS2344: Type 'Function' does not satisfy the constraint '(...args: any[]) => any'.

tests/baselines/reference/genericRestParameters2.errors.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
tests/cases/conformance/types/rest/genericRestParameters2.ts(71,40): error TS2344: Type '(x: string, ...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
2+
Types of parameters 'x' and 'args' are incompatible.
3+
Type 'any[]' is not assignable to type '[string, ...any[]]'.
4+
Property '0' is missing in type 'any[]'.
25

36

47
==== tests/cases/conformance/types/rest/genericRestParameters2.ts (1 errors) ====
@@ -75,6 +78,9 @@ tests/cases/conformance/types/rest/genericRestParameters2.ts(71,40): error TS234
7578
type T05<T extends any[]> = Parameters<(x: string, ...args: T) => void>;
7679
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7780
!!! error TS2344: Type '(x: string, ...args: T) => void' does not satisfy the constraint '(...args: any[]) => any'.
81+
!!! error TS2344: Types of parameters 'x' and 'args' are incompatible.
82+
!!! error TS2344: Type 'any[]' is not assignable to type '[string, ...any[]]'.
83+
!!! error TS2344: Property '0' is missing in type 'any[]'.
7884
type T06 = T05<[number, ...boolean[]]>;
7985

8086
type P1<T extends Function> = T extends (head: infer A, ...tail: infer B) => any ? { head: A, tail: B } : any[];

0 commit comments

Comments
 (0)