False positive with 'unified-signatures' #2016
Comments
edit: never mind Doesn't your 3rd signature allow 1 argument? |
@andy-ms, can you take a look? |
@nchen63 I considered that @andy-ms 's ticket title was answering your question. |
I'm also failing to understand this rule, and I've therefore disabled it. In the example below, I don't want to start merging overloads. For example, the second line has an optional country, but the third line doesn't, because it's required in stringified form by the
|
The failure there is referring to the first two overloads. Here's a simpler example: export function f(): void;
export function f(a: string, b?: string): void;
export function f(...args: any[]): void {
} The function can be passed 0, 1, or 2 parameters. So it could be just |
Bug Report
4.3.1
2.1.4
TypeScript code being linted
Actual behavior
These overloads can be combined into one signature with an optional parameter. (unified-signatures)'
at: '3,27'
Expected behavior
No warning. I want to allow either 0 or 2 parameters.
The text was updated successfully, but these errors were encountered: