Skip to content

import/export: false positives for typescript overloads #1357

Closed
@Philipp91

Description

@Philipp91

Minimal example to reproduce (not a sensible use case for overloads, but anyway):

export function consume(val: number): void;
export function consume(val: string): void;
export function consume(val: number | string): void {
    // Do something.
}

All three consume will be annotated with error Multiple exports of name 'consume' import/export.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions