chore: upgrade TypeScript to 7.0.2#11267
Draft
timotheeguerin with Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot created this pull request from a session on behalf of
timotheeguerin
July 15, 2026 17:04
View session
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.
TypeScript 7 drops the JavaScript Compiler API from the main
typescriptpackage —ts.sys,ts.createProgram,ts.SyntaxKind, etc. are gone. Tools still needing it must use the@typescript/typescript6compatibility package.Version changes
typescriptcatalog:~6.0.2→~7.0.2http-client-python,http-client-csharp: updated independently (excluded from workspace)vite-plugin-dts:5.0.2→5.0.3(first version with TS7 support)TypeScript Compiler API compatibility
Added
@typescript/typescript6: ~6.0.2to the catalog. Packages usingvite-plugin-dts(html-program-viewer,playground,playground-website,react-components,spec-dashboard) now declare it as a devDep.Type error fixes (TS7 stricter inference)
TS7's bidirectional inference now narrows
Rtofalseinstead ofbooleaninonRequestoverloads:compiler/src/server/server.ts:connection.onRequest<boolean, unknown>(...)typespec-vscode/src/tsp-language-client.ts:lc.onRequest<string | undefined, unknown>(...)pnpm patches for third-party packages using the Compiler API
@alloy-js/cli@0.24.0typescript→@typescript/typescript6inbuild.js/typescript.jstypedoc@0.28.19from "typescript"→from "@typescript/typescript6"(25+ files)@astrojs/check@0.9.9require.resolve('typescript')→require.resolve('@typescript/typescript6')@astrojs/language-server@2.16.10require('typescript')→require('@typescript/typescript6')incheck.jsEach patched package also gets
@typescript/typescript6injected viapackageExtensionsinpnpm-workspace.yaml.