eslint-plugin-flowtype
eslint-plugin-flowtype copied to clipboard
overloading a function using declare is producing ESLint no-redeclare error
declare function DataPoolConnectMethodType (): Promise<DatabasePoolConnectionType>;
declare function DataPoolConnectMethodType ((connection: DatabaseIsolatedPoolConnectionType) => Promise<void>): Promise<void>;
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
Any updates on this?
A PR is welcome, but no one is working on this.