Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gajus opened this issue Nov 14, 2018 · 2 comments
Open

Comments

@gajus
Copy link
Owner

gajus commented Nov 14, 2018

declare function DataPoolConnectMethodType (): Promise<DatabasePoolConnectionType>;
declare function DataPoolConnectMethodType ((connection: DatabaseIsolatedPoolConnectionType) => Promise<void>): Promise<void>;

Expected:

No error.

Actual:

no-redeclare error.

Related issues:

@bsonntag
Copy link

Any updates on this?

@gajus
Copy link
Owner Author

gajus commented May 18, 2020

A PR is welcome, but no one is working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants