gajus / gajus/eslint-plugin-flowtype
overloading a function using declare is producing ESLint no-redeclare error
Open
enhancement
help wanted
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
```js
declare function DataPoolConnectMethodType (): Promise;
declare function DataPoolConnectMethodType ((connection: DatabaseIsolatedPoolConnectionType) => Promise): Promise;
```
Expected:
No error.
Actual:
no-redeclare error.
Related issues:
* https://eslint.org/docs/rules/no-redeclare
* https://github.com/babel/eslint-plugin-babel/issues/162
Contributor guide
Assessment
This issue has not been assessed yet.