Skip to content

[api-extractor] export default of tagged API members are not correctly trimmed from API report variants #4775

@Josmithr

Description

@Josmithr

Summary

Given an export pattern like the following:

/** @beta */
export interface Foo { ... }

export default Foo;

The expectation is that Foo exports would only appear in API report variants beta and alpha, but they incorrectly appear in all report variants like the following:

export { Foo }
export default Foo;

I have published a draft PR (#4774) that illustrates the issue by updating test assets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intendedeffort: easyProbably a quick fix. Want to contribute? :-)help wantedIf you're looking to contribute, this issue is a good place to start!repro confirmedThe issue comments included repro instructions, and the maintainers reproduced the problem

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions