Expose some type checker features that were available in TS6 - #64535
Open
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 4 commits into
Open
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 4 commits into
Titian Cernicova-Dragomir (dragomirtitian) wants to merge 4 commits into
Conversation
Copilot started reviewing on behalf of
Titian Cernicova-Dragomir (dragomirtitian)
September 29, 2026 16:23
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Zero-valued formatting arguments are misinterpreted, escaped-name typing is widened, and unique-symbol behavior lacks regression coverage.
Review effort: Balanced
Findings: 2
Open (3)
What changed in this PR
Exposes additional TypeScript 6 checker capabilities through the async and sync APIs.
Changes:
- Adds union-origin, conditional-inference, unique-symbol, and symbol-formatting APIs.
- Adds protocol support and
SymbolFormatFlags. - Adds API and parity tests.
| File | Description |
|---|---|
tsc/internal/checker/types.go |
Exposes checker type metadata. |
tsc/internal/api/session.go |
Handles new API requests. |
tsc/internal/api/proto.go |
Defines protocol methods and payloads. |
tsc/internal/api/enum_values_generated.go |
Registers symbol-format enum values. |
tools/scripts/tsc/generate-enums.ts |
Adds enum generation configuration. |
packages/typescript/test/sync/api.test.ts |
Adds generated sync API tests. |
packages/typescript/test/sync/api-generators.test.ts |
Adds batching parity coverage. |
packages/typescript/test/async/api.test.ts |
Adds async API tests. |
packages/typescript/src/enums/symbolFormatFlags.ts |
Adds runtime enum output. |
packages/typescript/src/enums/symbolFormatFlags.enum.ts |
Adds typed enum output. |
packages/typescript/src/api/sync/types.ts |
Adds generated sync declarations. |
packages/typescript/src/api/sync/api.ts |
Adds generated sync implementations. |
packages/typescript/src/api/proto.generated.ts |
Adds generated protocol declarations. |
packages/typescript/src/api/async/types.ts |
Adds async public type declarations. |
packages/typescript/src/api/async/api.ts |
Implements the async APIs. |
Files not reviewed (1)
- tsc/internal/api/enum_values_generated.go: Generated file
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+326
to
+327
| /** The escaped name of the unique symbol, e.g. `"__@startWork@7"` */ | ||
| readonly escapedName: string; |
Comment on lines
+1746
to
+1747
| Meaning uint32 `json:"meaning,omitempty"` | ||
| Flags int32 `json:"flags,omitempty"` |
Comment on lines
+3554
to
+3556
| isUniqueESSymbolType(): this is UniqueESSymbolType { | ||
| return isUniqueESSymbolType(this); | ||
| } |
This branch has not been deployed
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.


Fixes #64533