Repository navigation
[api] Checker query APIs - #65589
Merged
Andrew Branch (andrewbranch) merged 8 commits intoNov 20, 2026
Merged
[api] Checker query APIs#65589Andrew Branch (andrewbranch) merged 8 commits into
Andrew Branch (andrewbranch) merged 8 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Valid nested rest-assignment patterns can throw, and generic union signatures can incorrectly report type arguments despite not being instantiated.
2 open issues
What changed in this PR
Extends the TypeScript JavaScript API with checker queries for symbols, assignment patterns, parameter optionality, property accessibility, and signature type arguments.
Changes:
- Adds Go checker entry points, request handlers, and protocol definitions.
- Exposes the queries through async, sync, and generator APIs, with cached signature type arguments.
- Adds behavior tests and generator-batching parity coverage.
| File | Description |
|---|---|
tsc/internal/checker/services.go |
Exposes checker queries and signature type-argument resolution. |
tsc/internal/api/session.go |
Routes requests and validates query inputs. |
tsc/internal/api/proto.go |
Defines protocol methods and request/response types. |
packages/typescript/test/sync/api.test.ts |
Adds generated synchronous query tests. |
packages/typescript/test/sync/api-generators.test.ts |
Tests generator parity for the new APIs. |
packages/typescript/test/async/api.test.ts |
Adds async behavior and symbol-identity tests. |
packages/typescript/src/api/sync/api.ts |
Adds generated sync and generator query methods. |
packages/typescript/src/api/proto.generated.ts |
Updates generated protocol types and batch methods. |
packages/typescript/src/api/async/api.ts |
Adds async queries and cached signature type arguments. |
Review effort: Balanced
Andrew Branch (andrewbranch)
marked this pull request as ready for review
November 19, 2026 21:25
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Andrew Branch (andrewbranch)
enabled auto-merge
November 20, 2026 00:40
Ryan Cavanaugh (RyanCavanaugh)
approved these changes
Nov 20, 2026
Mattia Manzati (mattiamanzati)
added a commit
to Effect-TS/tsgo
that referenced
this pull request
Nov 21, 2026
…pt next TypeScript f5a247c (microsoft/TypeScript#65589) adds Checker.GetTypeArgumentsForResolvedSignature to checker/services.go, which collides with the method _patches/typescript/003-checker-exports.patch added to exports.go and broke the next-tag shim generation. The upstream method behaves the same for every caller (all of them nil-check the signature), so the patch is dropped for next. The beta (3e92363) lacks the method, so its override folder keeps the patch: `repoctl check` now lets a TypeScript patch override folder hold patches the provider's folder dropped because the newer TypeScript carries them, as it already does for the tsrs override folders. Also regenerates the TypeScript next-tag sources (shims, submodule, flake) that the failed Update Upstreams run did not commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Checker.getRootSymbolsChecker.getSymbolsOfParameterPropertyDeclarationChecker.getTypeArgumentsForResolvedSignatureChecker.getTypeOfAssignmentPatternChecker.isOptionalParameterChecker.isValidPropertyAccessSignature.getTypeArguments