Upgrade TypeScript to 7.0.2#55
Closed
roryabraham wants to merge 2 commits into
Closed
Conversation
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>
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 the project to TypeScript 7.0.2 (latest stable) using Microsoft's recommended side-by-side setup:
@typescript/native(npm alias totypescript@^7.0.2) provides the TS 7tscused bynpm run tsandnpm run buildtypescript(npm alias to@typescript/typescript6@^6.0.2) satisfiestypescript-eslintand other tooling that still require the TS 6 compiler APIAlso adds
src/css.d.tsso side-effect CSS imports fromreact-pdftype-check under TS 7'snoUncheckedSideEffectImportsdefault.The repo did not use
@typescript/native-previewortsgo; no native-preview removal was needed.Related Issues
N/A
Manual Tests
npm ciin the repository root.npx tsc --versionand confirm it reports7.0.2.npm run tsand confirm type-checking passes.npm run buildand confirm compilation succeeds.npm run lintand confirm ESLint passes.npx prettier . --checkand confirm formatting passes.Linked PRs
N/A