Skip to content

[API Extractor] Groundwork for member trimming - #560

Merged
Pete Gonzalez (octogonz) merged 42 commits into
masterfrom
pgonzal/ae-trimming-4
Mar 17, 2018
Merged

Pete Gonzalez (octogonz) merged 42 commits into
masterfrom
pgonzal/ae-trimming-4

Conversation

@octogonz

@octogonz Pete Gonzalez (octogonz) commented Mar 13, 2018 •

Copy link
Copy Markdown
Collaborator

This PR finally merges a development branch that has been open for several weeks. It is a major overhaul of the API Extractor semantic analyzer, which in a future PR will enable the the packaging typings generator to trim nested members of definitions.

The package typings generator is still "beta", so the "breaking changes" in this PR don't affect any official features.

NOTE: For any projects with the packageTypings feature enabled in their api-extractor.json, API Extractor now requires a field like this in your package.json file:

  "tsdoc": {
    "tsdocFlavor": "AEDoc"
  },

This designation allows API Extractor to safely parse AEDoc comments found in a library dependency, without accidentally parsing comments (and reporting bogus errors) for libraries that were never intended to work with API Extractor.

…ongside isExportableAstDeclaration(). Added some missing edge cases.
…laration for a ts.SyntaxKind.SourceFile node
… exports) if they are part of the current project (i.e. lacking an AstImport)
…tDeclaration, but for some reason we can't make a parent AstSymbol
…; this required _fetchAstSymbol() to add the "new AstSymbol" slightly later
@octogonz

Pete Gonzalez (octogonz) commented Mar 17, 2018 •

Copy link
Copy Markdown
Collaborator Author

:shipit:

Approved with PullApprove Approved with PullApprove

@octogonz
Pete Gonzalez (octogonz) merged commit f0bfe5c into master Mar 17, 2018
@octogonz
Pete Gonzalez (octogonz) deleted the pgonzal/ae-trimming-4 branch May 2, 2018 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants