chore: bump typescript 7 (#15465)

This commit is contained in:
DarkSky
2026-08-11 03:09:54 +08:00
committed by GitHub
parent 0c7b20dc18
commit 6375f5ab8c
103 changed files with 1468 additions and 1065 deletions

View File

@@ -3,7 +3,7 @@
"types": "./index.d.ts",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"exports": {

View File

@@ -24,9 +24,7 @@ export function noop(_?: unknown) {
}
export async function nextTick() {
// @ts-expect-error check window.scheduler
if ('scheduler' in window && 'yield' in window.scheduler) {
// @ts-expect-error check window.scheduler.yield
return window.scheduler.yield();
} else if (typeof requestIdleCallback !== 'undefined') {
return new Promise(resolve => requestIdleCallback(resolve));

View File

@@ -3,7 +3,7 @@
"description": "Std for blocksuite blocks",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],

View File

@@ -3,7 +3,7 @@
"description": "BlockSuite data store built for general purpose state management.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],

View File

@@ -3,7 +3,7 @@
"description": "BlockSuite data synchronization engine abstraction and implementation.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],