Skip to content

Upgrade TypeScript to 7.0.2#766

Closed
roryabraham wants to merge 2 commits into
mainfrom
rory-upgrade-typescript-7
Closed

Upgrade TypeScript to 7.0.2#766
roryabraham wants to merge 2 commits into
mainfrom
rory-upgrade-typescript-7

Conversation

@roryabraham

@roryabraham roryabraham commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

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 tsc for typechecking. No @typescript/native-preview or tsgo usage was present.

TS 7 compatibility fixes:

  • Removed deprecated compiler options noImplicitUseStrict and noStrictGenericChecks
  • Set types: ["*"] to preserve pre-TS7 ambient @types inclusion (TS 7 defaults types to [])
  • Added declare module '*.css' for TS 7's default noUncheckedSideEffectImports check
  • Updated CI workflows to run npm ci --legacy-peer-deps until @typescript-eslint/* peer dependencies allow TypeScript 7

Known blocker: npm run lint / ESLint currently fails with TypeScript 7 because @typescript-eslint/parser does not yet support TS 7 (typescript-eslint#12518). Typecheck, tests, and bob build pass locally.

Related Issues

N/A

Manual Tests

  1. Run npm ci --legacy-peer-deps from the repo root.
  2. Run npm run typecheck -- --project tsconfig.json.
  3. Run npm run typecheck -- --project example/tsconfig.json.
  4. Run npm run typecheck -- --project WebExample/tsconfig.json.
  5. Run npm test and confirm all Jest suites pass.
  6. Run npm run prepare and confirm react-native-builder-bob completes successfully.

Linked PRs

N/A

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>
@roryabraham roryabraham closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant