Skip to content

declare-ed members not correctly handled by isolatedDeclerations emit #8473

@ericrafalovsky

Description

@ericrafalovsky

The below code pattern using the declare syntax appears to result in members incorrectly being emitted from the produced declarations.

Example code:

declare class Container {
    Data: any;
}

declare class GenericClass {
    public getContainer(): Container;
}

export default GenericClass;

Expected:

declare class Container {
    Data: any;
}
declare class GenericClass {
    getContainer(): Container;
}
export default GenericClass;

Actual

export default MyClass;

Metadata

Metadata

Assignees

Labels

C-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions