From aa81d5d0ee2274f3ea6b49d5d97de0e96849c483 Mon Sep 17 00:00:00 2001 From: Joshua Smithrud <54606601+Josmithr@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:57:43 -0700 Subject: [PATCH] Don't strip out `@alpha` items from report It is useful for `@alpha` items to appear in metadata and generated documentation. The system currently unconditionally strips all `@alpha` items out. I don't know how important it is to preserve existing behavior. If so, perhaps this should be configurable somehow? Any feedback / suggestions would be appreciated. --- apps/api-extractor/src/generators/ApiModelGenerator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api-extractor/src/generators/ApiModelGenerator.ts b/apps/api-extractor/src/generators/ApiModelGenerator.ts index 64c4fc56ceb..0d0037cb2ba 100644 --- a/apps/api-extractor/src/generators/ApiModelGenerator.ts +++ b/apps/api-extractor/src/generators/ApiModelGenerator.ts @@ -176,8 +176,8 @@ export class ApiModelGenerator { const apiItemMetadata: ApiItemMetadata = this._collector.fetchApiItemMetadata(astDeclaration); const releaseTag: ReleaseTag = apiItemMetadata.effectiveReleaseTag; - if (releaseTag === ReleaseTag.Internal || releaseTag === ReleaseTag.Alpha) { - return; // trim out items marked as "@internal" or "@alpha" + if (releaseTag === ReleaseTag.Internal) { + return; // trim out items marked as "@internal" } switch (astDeclaration.declaration.kind) {