Repository navigation
[api] Checker node builder APIs - #65585
Merged
Andrew Branch (andrewbranch) merged 10 commits intoNov 20, 2026
Merged
Andrew Branch (andrewbranch) merged 10 commits into
Andrew Branch (andrewbranch) merged 10 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>
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
The new API incorrectly returns undefined for generic type aliases because its helper checks the import-alias flag instead of the type-alias flag.
1 open issue
1 file not reviewed
tsc/internal/api/enum_values_generated.go: Generated file
What changed in this PR
Adds nine checker formatting APIs to the TypeScript JavaScript client, exposing existing compiler functionality for producing strings and syntax nodes.
Changes:
- Connects the new methods through checker wrappers, request handlers, and protocol definitions.
- Adds async, sync, and generator-based client APIs, plus
SymbolFormatFlags. - Adds formatting tests and generator-batching parity coverage.
| File | Description |
|---|---|
tsc/internal/checker/types.go |
Adds constructors for predicates and index information. |
tsc/internal/checker/printer.go |
Exposes checker formatting wrappers. |
tsc/internal/api/session.go |
Routes requests and handles string formatting. |
tsc/internal/api/proto.go |
Defines protocol methods and parameters. |
tsc/internal/api/enum_values_generated.go |
Includes symbol-format flag values. |
tsc/internal/api/checker_serialization.go |
Validates inputs and serializes generated nodes. |
tools/scripts/tsc/generate-enums.ts |
Registers SymbolFormatFlags generation. |
packages/typescript/test/sync/api.test.ts |
Adds synchronous formatting tests. |
packages/typescript/test/sync/api-generators.test.ts |
Adds generator-batching parity cases. |
packages/typescript/test/async/api.test.ts |
Adds asynchronous formatting tests. |
packages/typescript/src/api/sync/api.ts |
Adds generated sync and generator methods. |
packages/typescript/src/api/proto.generated.ts |
Updates generated protocol types. |
packages/typescript/src/api/async/api.ts |
Adds asynchronous checker methods. |
packages/typescript/enums/symbolFormatFlags.js |
Provides runtime symbol-format flags. |
packages/typescript/enums/symbolFormatFlags.d.ts |
Declares symbol-format flag types. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Andrew Branch (andrewbranch)
marked this pull request as ready for review
November 19, 2026 21:28
Ryan Cavanaugh (RyanCavanaugh)
approved these changes
Nov 20, 2026
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.indexInfoToIndexSignatureDeclarationChecker.signatureToStringChecker.symbolToEntityNameChecker.symbolToExpressionChecker.symbolToParameterDeclarationChecker.symbolToStringChecker.symbolToTypeParameterDeclarationsChecker.typeParameterToDeclarationChecker.typePredicateToString