Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "error"
}
}
export function foo(a: string): string;
export function foo(a: number): number;
export function foo(a: unknown) {
return a;
}
Expected Result
I'd like a new option that makes this code pass, since the implementation signature is not visible to the outside, while the boundary, defined by the overload signatures, is well-typed.
Actual Result
This errors, even with all the allow*
options turned on.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.12.1 |
@typescript-eslint/parser |
5.12.1 |
TypeScript |
4.5.5 |
ESLint |
8.9.0 |
node |
17.5.0 |