Skip to content

TypeScript permits multiple default-exported types #19850

@DanielRosenwasser

Description

@DanielRosenwasser
export default interface Foo {
    x: string;
}

interface Bar {
    x: number;
}

export default Bar;

Expected: Error
Actual: this code is allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions