Skip to content

[api-extractor] Namespace export created by import/export * does not remove exports that have been trimmed #3639

Description

Summary

I am recreating TypeScript's namespaces using api-extractor and barrel files with exports; when I run api-extractor, things marked @internal are correctly removed, but are not removed from the recreated namespaces.

Repro steps

Expected result: When everything but the pubic API is removed, the namespace exports should not contain those trimmed items.

Actual result: The namespace exports still contain the trimmed items.

Repro: https://github.com/jakebailey/api-extractor-export-star-internal-namespace

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? 7.31.2
Operating system? Windows
API Extractor scenario? rollups (.d.ts)
Would you consider contributing a PR? Yes
TypeScript compiler version? 4.8.3
Node.js version (node -v)? 14.19.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions