Skip to content

[docs-infra] Fold only value exports into constant groups - #1812

Draft
Janpot wants to merge 2 commits into
masterfrom
worktree-docs-infra-value-exports
Draft

[docs-infra] Fold only value exports into constant groups#1812
Janpot wants to merge 2 commits into
masterfrom
worktree-docs-infra-value-exports

Conversation

@Janpot

@Janpot Janpot commented Aug 25, 2026

Copy link
Copy Markdown
Member

Follow-up to #1713, blocked on michaldudak/typescript-api-extractor#226 being released and the dependency bumped (currently beta.4; the bump also picks up the beta.5/6 breaking changes). Until then typecheck and the new tests are expected red — this PR is prepared as a workitem.

Uses the new isValue declaration-space flag so transformConstantGroup folds only runtime constants: type-only exports (literal type aliases, interfaces) are skipped as typing helpers instead of being mistaken for constants or tripping the constants-only error, and standalone constants next to the file's enum now fail the build instead of silently vanishing from the generated docs.

Blocked on michaldudak/typescript-api-extractor#226 being released: the code
uses the isValue declaration-space flag that beta.4 does not report yet, so
typecheck and the new tests stay red until the dependency is bumped.

Type-only exports (literal type aliases, interfaces) no longer fold into the
group or trip the constants-only error; they are typing helpers with no runtime
constant to document. Standalone constants next to the file's enum now fail the
build instead of silently vanishing from the docs, since downstream matching
reads only the enum.
@code-infra-dashboard

Copy link
Copy Markdown

Deploy preview


Check out the code infra dashboard for more information about this PR.

Single readConstantValue spelling shared by the predicate and the fold loop,
identity-based sibling check against the found enum instead of a paired name
comparison, and the ExportNode declaration spaces passed as the named object
the extractor PR settled on instead of positional booleans.
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.

1 participant