[unified-signatures] Rule is confused by a difference in signatures on an async function's return type #740
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Neither get1 nor get2 have any warnings
Actual Result
get2 issues a unified signature warning on
defaultValue: string
in line 2 of get2's declaration. I don't see a way to combine the signatures without losing the information that the return type differs between the two overloads.Versions
@typescript-eslint/eslint-plugin
1.12.0
@typescript-eslint/parser
1.12.0
TypeScript
3.5.3
ESLint
6.1.0
node
12.6.0
npm
6.9.0
The text was updated successfully, but these errors were encountered: