Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Josmithr opened this issue Jun 11, 2024 · 1 comment

Comments

@Josmithr
Copy link
Contributor

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.

@Josmithr
Copy link
Contributor Author

@octogonz I'm happy to contribute a fix here, but I'll need some guidance on where to get started.

This seems to be specific to cases where an existing export is also exported via export default. E.g.,

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

I was not able to repro it when the declaration is inline with the default export. E.g.,

export default interface Foo { ... };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant