chore: bump TypeScript to 7.0.2 - #2679
Open
joyenjoyer wants to merge 2 commits into
Open
Conversation
TypeScript 7 tightened validation of @ts-expect-error: it now errors when the directive doesn't suppress an actual error. Two now-stale directives (one in packages/__docs__/globals.ts, one in ui-table's Table.test.tsx) no longer trigger real errors under TS7 and were changed to @ts-ignore. Lockfile updated accordingly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
joyenjoyer
changed the base branch from
master
to
INSTUI-5144-swap-ts-6-compiler-api-to-jscodeshift-in-codemods
August 5, 2026 14:32
joyenjoyer
commented
Aug 5, 2026
| "react-docgen": "8.0.3", | ||
| "style-loader": "4.0.0", | ||
| "thread-loader": "^4.0.4", | ||
| "typescript-compiler-api": "npm:@typescript/typescript6@^6.0.2", |
Contributor
Author
There was a problem hiding this comment.
TS7 has no compiler API (that is used in getJSDoc). They promise a new API in 7.1 and recommends adding in this compatibility packages until it is released.
Contributor
|
Contributor
Visual regression report
Diff images (33)alert.png — baseline no longer producedavatar.png — baseline no longer producedbadge.png — baseline no longer producedbillboard.png — baseline no longer producedbreadcrumb.png — baseline no longer producedbutton-and-derivatives.png — baseline no longer producedbyline.png — baseline no longer producedcalendar.png — baseline no longer producedcheckbox.png — baseline no longer producedcheckboxgroup.png — baseline no longer producedcolorpicker.png — baseline no longer producedcontextview.png — baseline no longer producedcustom-and-lucide-icons.png — baseline no longer produceddateinput-dateinput2.png — baseline no longer produceddatetimeinput.png — baseline no longer produceddiff-demo.png — 6324 pixels differdrilldown.png — baseline no longer producedfiledrop.png — baseline no longer producedform-errors.png — baseline no longer producedheading.png — baseline no longer producedimg.png — baseline no longer producedlink.png — baseline no longer producedmenu.png — baseline no longer producedmetric-pill-tag-timeselect-text.png — baseline no longer producedoptions.png — baseline no longer producedpagination.png — baseline no longer producedprogressbar.png — baseline no longer producedselect-simpleselect.png — baseline no longer producedtable.png — baseline no longer producedtabs.png — baseline no longer producedtooltip.png — baseline no longer producedtreebrowser.png — baseline no longer producedview.png — baseline no longer producedBaselines come from the |
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.

Summary
typescriptto7.0.2in the rootpackage.json@ts-expect-errordirectives (inpackages/__docs__/globals.tsand ui-table'sTable.test.tsx) that TS7's stricter validation now flags as stale, since they no longer suppress a real error__docs__'s JSDoc extraction (getJSDoc.mts), which also depends on the removed Compiler API, by importing it from@typescript/typescript6(Microsoft's official TS 6.0 compatibility shim), scoped to that package only, the rest of the repo's type-checking/build still runs on TypeScript 7Fixes INSTUI-5147