gajus/eslint-plugin-flowtype

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

Open

#374 建立於 2018年11月14日

在 GitHub 查看
 (2 留言) (4 反應) (0 負責人)JavaScript (1,078 star) (167 fork)batch import
enhancementhelp wanted

描述

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

Expected:

No error.

Actual:

no-redeclare error.

Related issues:

貢獻者指南