Skip to content

Commit e5cd23a

Browse files
committed
Adopt TypeScript 7
1 parent 79c92ee commit e5cd23a

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.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
},

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": "^3.0.0",
@@ -55,6 +55,7 @@
5555
"@types/node": "^25.5.0",
5656
"@types/react": "^19.2.14",
5757
"@types/react-dom": "^19.2.3",
58+
"@typescript/native-preview": "^7.0.0-dev.20260327.2",
5859
"@vitejs/plugin-react": "^6.0.1",
5960
"@vitest/browser-playwright": "^4.1.0",
6061
"@vitest/coverage-istanbul": "^4.1.0",

src/EditCell.tsx

Lines changed: 2 additions & 2 deletions
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.
@@ -113,7 +113,7 @@ export default function EditCell<R, SR>({
113113
function cancelTask() {
114114
captureEventRef.current = undefined;
115115
if (abortControllerRef.current !== undefined) {
116-
abortControllerRef.current.abort();
116+
abortControllerRef.current.abort('test');
117117
abortControllerRef.current = undefined;
118118
}
119119
if (frameRequestRef.current !== undefined) {

0 commit comments

Comments
 (0)