Repository navigation
Keep the names of aliases a documented alias refers to - #311
Merged
Merged
Conversation
A non-generic type alias was printed with references to other aliases expanded one level. A generated input type such as Linear's IssueFilter, whose fields are comparator aliases, grew to 57 KB in describe. Aliases are now printed as declaration files write them, with references by name, as generic aliases already were.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 15d34ef | Nov 22 2026, 09:17 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A non-generic type alias is documented with references to other aliases expanded one level. A generated input type whose fields are themselves aliases grows several times: in the Linear template,
IssueFilter(about 100 fields of comparator aliases such asNullableDateComparator) is 57 KB indescribe, and describingviewerwithissuesreturns 84 KB. Interfaces are not affected, since they keep their names.What changes
uses.On the Linear template,
IssueFilterdrops from 57 KB to 17 KB, and describingviewerwithissuesfrom 84 KB to 41 KB. The whole document is 2.0 MB with 828 types.Verification
uses. It fails without the change.RUN_CLI_TESTS=1documentation extraction, app-services CLI and integration testsRUN_WASM_TESTS=1 pnpm exec vitest run packages/service-docsandRUN_BUILDER_TESTS=1 pnpm exec vitest run packages/app-builderwith the rebuilt WebAssembly modulepnpm check;bash tools/cargo.sh fmt --all --check,clippy --workspace --all-targets -D warnings,clippyfor the WebAssembly target,test --workspace

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found.Summary
Non-generic type aliases now keep referenced alias names instead of expanding their bodies.
Reviews (1) · Last reviewed commit: "Keep the names of aliases a documented a..." · Reviewed by Greptile