Skip to content

Upgrade TypeScript to 7.0.2#55

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

Upgrade TypeScript to 7.0.2#55
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 the project to TypeScript 7.0.2 (latest stable) using Microsoft's recommended side-by-side setup:

  • @typescript/native (npm alias to typescript@^7.0.2) provides the TS 7 tsc used by npm run ts and npm run build
  • typescript (npm alias to @typescript/typescript6@^6.0.2) satisfies typescript-eslint and other tooling that still require the TS 6 compiler API

Also adds src/css.d.ts so side-effect CSS imports from react-pdf type-check under TS 7's noUncheckedSideEffectImports default.

The repo did not use @typescript/native-preview or tsgo; no native-preview removal was needed.

Related Issues

N/A

Manual Tests

  1. Run npm ci in the repository root.
  2. Run npx tsc --version and confirm it reports 7.0.2.
  3. Run npm run ts and confirm type-checking passes.
  4. Run npm run build and confirm compilation succeeds.
  5. Run npm run lint and confirm ESLint passes.
  6. Run npx prettier . --check and confirm formatting passes.

Linked PRs

N/A

Move from TypeScript 5.x to stable 7.0.2 and add CSS module
declarations needed for TS 7 side-effect import checking.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use Microsoft's recommended dual-package setup so tsc runs TS 7 while
typescript-eslint keeps the TS 6 compiler API. Add CSS module declarations
required by TS 7's noUncheckedSideEffectImports default.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham closed this Jul 9, 2026
@roryabraham roryabraham deleted the rory-upgrade-typescript-7 branch July 9, 2026 06:44
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