Skip to content

Interface merging silently fails with ES6 module syntax #4699

@weswigham

Description

@weswigham

a.ts:

export interface Foo {
  a: string;
}

b.ts:

import {Foo} from "./a.ts";
export interface Foo {
  b?: number;
}

let x: Foo;

x will only have the members from the initial Foo declaration in a.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions