Skip to content

import/export: false positives for typescript overloads #1357

Closed

Description

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.

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

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