File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
packages/eslint-plugin/docs/rules Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ function x(x: number | string): void;
38
38
function y(... x : number []): void ;
39
39
```
40
40
41
+ ``` ts
42
+ // This rule won't check overload signatures with different rest parameter types.
43
+ // See https://github.com/microsoft/TypeScript/issues/5077
44
+ function f(... a : number []): void ;
45
+ function f(... a : string []): void ;
46
+ ```
47
+
41
48
## Options
42
49
43
50
### ` ignoreDifferentlyNamedParameters `
@@ -53,21 +60,11 @@ function f(a: number): void;
53
60
function f(a : string ): void ;
54
61
```
55
62
56
- ``` ts
57
- function f(... a : number []): void ;
58
- function f(... b : string []): void ;
59
- ```
60
-
61
63
### ✅ Correct
62
64
63
65
``` ts
64
66
function f(a : number ): void ;
65
67
function f(b : string ): void ;
66
68
```
67
69
68
- ``` ts
69
- function f(... a : number []): void ;
70
- function f(... a : string []): void ;
71
- ```
72
-
73
70
## Options
You can’t perform that action at this time.
0 commit comments