gajus / gajus/eslint-plugin-flowtype

overloading a function using declare is producing ESLint no-redeclare error

Open
#374 2 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.