Skip to content

[explicit-module-boundary-types] Warns on constructor overload #2150

Closed
@TheBrokenRail

Description

@TheBrokenRail

Repro

export class Test {
    constructor();
    constrcutor(value?: string) {
        console.log(value);
    }
}

Expected Result
No warnings

Actual Result

114:16  warning  Missing return type on function  @typescript-eslint/explicit-module-boundary-types

Versions

package version
@typescript-eslint/eslint-plugin 3.1.0
@typescript-eslint/parser 3.1.0
TypeScript 3.9.3
ESLint 7.1.0
node 14.2.0
npm 6.14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions