chore: bump typescript 7 (#15465)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"types": "./index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
"build": "yarn run -T tsc"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"description": "Std for blocksuite blocks",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
"build": "yarn run -T tsc"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"keywords": [],
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
@@ -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": [],
|
||||
|
||||
Reference in New Issue
Block a user