Skip to content

[api-extractor] Improve SymbolAnalyzer to support "export * from" #949

@octogonz

Description

@octogonz

The SymbolAnalyzer currently relies on TypeScriptHelpers.getImmediateAliasedSymbol() for determining whether a symbol was imported from an external package, and if so what module path was used to import it.

This approach cannot handle export * from '____' constructs, because there is no symbol alias that can be used to discover the export line. In API Extractor 6 this problem mostly affects the .d.ts rollups. For the API report, it simply includes extra definitions that technically belong to an external package.

For API Extractor 7 this problem is more serious, because everything uses the .d.ts rollups engine.

I have a plan to improve the SymbolAnalyzer, but it needs to wait until the initial AE7 branch is merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is asking for a new feature or design change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions