Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I haveread the FAQ and my problem is not listed.
Repro
{"rules": {"@typescript-eslint/explicit-module-boundary-types":"error" }}
exportfunctionfoo(a:string):string;exportfunctionfoo(a:number):number;exportfunctionfoo(a:unknown){returna;}
Expected Result
I'd like a new option that makes this code pass, since the implementation signature is not visible to the outside, while theboundary, defined by the overload signatures, is well-typed.
Actual Result
This errors, even with all theallow*
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 |