Skip to content

Commit 7e1d385

Browse files
Adopt TypeScript 7 (#4017)
* Adopt TypeScript 7 * update AGENTS.ms --------- Co-authored-by: Aman Mahajan <amahajan@stratag.com>
1 parent dac4ffc commit 7e1d385

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint", "oxc.oxc-vscode"]
2+
"recommendations": ["dbaeumer.vscode-eslint", "oxc.oxc-vscode", "typescriptteam.native-preview"]
33
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"editor.formatOnSaveMode": "file",
1111
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
1212
"js/ts.tsdk.path": "node_modules/typescript/lib",
13+
"js/ts.experimental.useTsgo": true,
1314
"files.readonlyInclude": {
1415
"**/routeTree.gen.ts": true
1516
},

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```shell
66
npm install # setup (requires Node.js ≥ 22 for `node --run`)
77
node --run build # library → lib/
8-
node --run typecheck # tsc --build
8+
node --run typecheck # tsgo --build
99
node --run eslint # eslint --max-warnings 0
1010
node --run eslint:fix # eslint --fix
1111
node --run format # oxfmt

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"format:check": "oxfmt --check",
4545
"eslint": "eslint --max-warnings 0 --cache --cache-location .cache/eslint --cache-strategy content",
4646
"eslint:fix": "node --run eslint -- --fix",
47-
"typecheck": "tsc --build"
47+
"typecheck": "tsgo --build"
4848
},
4949
"devDependencies": {
5050
"@eslint-react/eslint-plugin": "^4.2.1",
@@ -56,6 +56,7 @@
5656
"@types/node": "^25.5.0",
5757
"@types/react": "^19.2.14",
5858
"@types/react-dom": "^19.2.3",
59+
"@typescript/native-preview": "^7.0.0-dev.20260327.2",
5960
"@vitejs/plugin-react": "^6.0.1",
6061
"@vitest/browser-playwright": "^4.1.2",
6162
"@vitest/coverage-istanbul": "^4.1.2",

src/EditCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import type {
2121
* The event can be `stopPropagation()`ed halfway through, so they may not always bubble back up to the window,
2222
* so an alternative check must be used. The check must happen after the event can reach the "inside" container,
2323
* and not before it run to completion. `postTask`/`requestAnimationFrame` are the best way we know to achieve this.
24-
* Usually we want click event handlers from parent components to access the latest commited values,
24+
* Usually we want click event handlers from parent components to access the latest committed values,
2525
* so `mousedown` is used instead of `click`.
2626
*
2727
* We must also rely on React's event capturing/bubbling to handle elements rendered in a portal.

0 commit comments

Comments
 (0)