Repository navigation
Record the types each signature uses - #303
Merged
Merged
Conversation
Describing methods found their types by searching signature texts for type names, which needed rules for generic, namespaced and qualified names. The extractor already resolves every type it documents, so it now records on each signature and each type definition the documented types it uses directly, and describing methods follows those references. The documentation format becomes version 2; documentation of the earlier format counts as missing until the app is deployed again.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | e24ceb2 | Nov 22 2026, 04:15 PM |
A type's call signature can name types only in its own type parameters, such as `<T extends Item = Item>`. Their constraints and defaults are now part of the types it uses. The search index format moves to 3, so indexes built from documentation of the earlier format are rebuilt instead of advertising methods that describe can no longer read.
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
#297 finds the types a described method needs by searching its signature texts for documented type names. Generated names take several forms (
Item,One.Item,Page<Item>,import("./model").Item), and review already found two matching gaps. The extractor resolves every type it documents, so it can state the references exactly instead.What changes
uses, the names of the documented types it uses directly. Undocumented types in between (unions, arrays, library generics such asPromiseorMap) pass their uses through.uses(defaults to an empty list). Documentation of format 1 counts as missing in the runtime and the control plane until the app is deployed again.selectServiceMethodsfollowsusesfrom the selected signatures through the type definitions. The text matching is removed.Verification
pnpm checkpnpm exec vitest run(all suites)RUN_CLI_TESTS=1CLI, network CLI, app-services CLI and documentation extraction tests with a freshly built CLI; the extraction tests for generic and namespaced types assert the selected typesRUN_WASM_TESTS=1 pnpm exec vitest run packages/service-docswith the rebuilt WebAssembly moduleRUN_SERVICE_TESTS=1runtime service tests (workerd and celld),RUN_CLOUDFLARE_TESTS=1Cloudflare suite,playwright test tests/e2e/auth.spec.tsbash tools/cargo.sh testandclippy --all-targets -D warningsforplatform-service-docs,platform-service-docs-wasmandplatform-cli;fmt --all --check

Confidence Score: 5/5
The PR appears safe to merge, with both earlier findings fixed and no new issues found.Summary
Records exact type references in documentation format 2 and follows those references when selecting methods.
Reviews (3) · Last reviewed commit: "Expect recorded type uses in the app bui..." · Reviewed by Greptile