Upgrade TypeScript to 7.0.2#766
Closed
roryabraham wants to merge 2 commits into
Closed
Conversation
Bump typescript to the latest stable v7 across the root package and workspaces, and update tsconfig for TS7 compatibility. Co-authored-by: Cursor <cursoragent@cursor.com>
Use types wildcard for TS 7 ambient declarations, add CSS module types for noUncheckedSideEffectImports, and run npm ci with legacy-peer-deps until typescript-eslint supports TS 7. Co-authored-by: Cursor <cursoragent@cursor.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.
Details
Upgrades TypeScript from 5.8.3 to 7.0.2 (latest stable v7 on npm) across the root package, example workspace, and WebExample workspace.
This repo already uses standard
tscfor typechecking. No@typescript/native-previewortsgousage was present.TS 7 compatibility fixes:
noImplicitUseStrictandnoStrictGenericCheckstypes: ["*"]to preserve pre-TS7 ambient@typesinclusion (TS 7 defaultstypesto[])declare module '*.css'for TS 7's defaultnoUncheckedSideEffectImportschecknpm ci --legacy-peer-depsuntil@typescript-eslint/*peer dependencies allow TypeScript 7Known blocker:
npm run lint/ ESLint currently fails with TypeScript 7 because@typescript-eslint/parserdoes not yet support TS 7 (typescript-eslint#12518). Typecheck, tests, andbob buildpass locally.Related Issues
N/A
Manual Tests
npm ci --legacy-peer-depsfrom the repo root.npm run typecheck -- --project tsconfig.json.npm run typecheck -- --project example/tsconfig.json.npm run typecheck -- --project WebExample/tsconfig.json.npm testand confirm all Jest suites pass.npm run prepareand confirmreact-native-builder-bobcompletes successfully.Linked PRs
N/A