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
* Improve multiple overloads error span
When all errors for a multiple-overload error refer to the same span,
use that span instead of the one for the entire call.
This situation is quite common for 2-overload sets in React.
* Update baselines
* Fix lint
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(22,17): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'string'.
4
4
Type 'number' is not assignable to type 'string'.
5
-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(34,13): error TS2769: No overload matches this call.
5
+
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(34,17): error TS2769: No overload matches this call.
6
6
Overload 1 of 2, '(x: string): number', gave the following error.
7
7
Argument of type 'string | number' is not assignable to parameter of type 'string'.
8
8
Type 'number' is not assignable to type 'string'.
9
9
Overload 2 of 2, '(x: number): string', gave the following error.
10
10
Argument of type 'string | number' is not assignable to parameter of type 'number'.
11
11
Type 'string' is not assignable to type 'number'.
12
-
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(45,13): error TS2769: No overload matches this call.
12
+
tests/cases/conformance/controlFlow/controlFlowIterationErrors.ts(45,17): error TS2769: No overload matches this call.
13
13
Overload 1 of 2, '(x: string): number', gave the following error.
14
14
Argument of type 'string | number' is not assignable to parameter of type 'string'.
0 commit comments