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
-940
View File
File diff suppressed because one or more lines are too long
+1000
View File
File diff suppressed because one or more lines are too long
+7 -1
View File
@@ -1,7 +1,13 @@
approvedGitRepositories:
- "https://github.com/electron/node-gyp.git"
- "https://github.com/locize/html-parse-stringify2.git"
compressionLevel: mixed
enableGlobalCache: true
enableScripts: false
nmMode: hardlinks-local
nodeLinker: node-modules
@@ -12,4 +18,4 @@ npmPublishAccess: public
npmRegistryServer: "https://registry.npmjs.org"
yarnPath: .yarn/releases/yarn-4.13.0.cjs
yarnPath: .yarn/releases/yarn-4.18.0.cjs
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "BlockSuite for Affine",
"type": "module",
"scripts": {
"build": "tsc --build --verbose"
"build": "yarn run -T tsc --build --verbose"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Attachment block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Bookmark block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Callout block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Code block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Data view block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Database block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Divider block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Edgeless text block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Embed doc blocks for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Embed blocks for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Frame block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Image block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Latex block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "List block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Note block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Paragraph block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Root block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Surface ref block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Surface block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Table block for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Default BlockSuite editable blocks.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Views of database in affine",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Extension loader for affine",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Foundation extensions for affine.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Adapter panel fragment for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Doc title fragment for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Frame panel fragment for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Outline fragment for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx brush for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx connector for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx group for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx link for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx mindmap for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx note for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx pointer for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx shape for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx template for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Gfx text for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Turbo renderer for viewport in BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Inline comment for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Inline footnote for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Inline latex for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Inline link for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Inline mention for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Inline preset for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Inline reference for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Models for BlockSuite in Affine.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Inline rich text for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Default BlockSuite editable blocks.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Drag handle for BlockSuite.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine edgeless auto connect widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine edgeless dragging area widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine edgeless selected-rect widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine edgeless toolbar widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine edgeless zoom toolbar widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine frame title widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine keyboard toolbar widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine linked doc widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine note slicer widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine page dragging area widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine remote selection widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine scroll anchoring widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine slash menu widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine toolbar widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
@@ -3,7 +3,7 @@
"description": "Affine viewport overlay widget.",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
View File
@@ -8,7 +8,7 @@
"license": "MPL-2.0",
"type": "module",
"scripts": {
"build:deps": "tsc -b ../affine/all",
"build:deps": "yarn run -T tsc -b ../affine/all",
"typedoc": "yarn run build:deps && typedoc --options ./typedoc.json",
"dev": "yarn run typedoc && yarn exec vitepress dev --port 5200",
"dev:nobuild": "yarn exec vitepress dev --port 5200",
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Std for blocksuite blocks",
"type": "module",
"scripts": {
"build": "tsc"
"build": "yarn run -T tsc"
},
"sideEffects": false,
"keywords": [],
+1 -1
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": [],
+1 -1
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": [],
+1 -1
View File
@@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc",
"build": "yarn run -T tsc",
"test:unit": "vitest --browser.headless --run",
"test:debug": "PWDEBUG=1 npx vitest --browser.headless=false"
},
@@ -266,7 +266,7 @@ describe('basic', () => {
import type { FrameBlockComponent } from '@blocksuite/affine/blocks/frame';
import type { SurfaceRefBlockComponent } from '@blocksuite/affine/blocks/surface-ref';
import snapshot from '../snapshots/edgeless/surface-ref.spec.ts/surface-ref.json' assert { type: 'json' };
import snapshot from '../snapshots/edgeless/surface-ref.spec.ts/surface-ref.json' with { type: 'json' };
describe('clipboard', () => {
test('import surface-ref snapshot should render content correctly', async () => {
+1 -1
View File
@@ -2,6 +2,6 @@
// exists for easier extending in blocksuite packages
"extends": "../tsconfig.web.json",
"compilerOptions": {
"types": ["node"]
"types": ["assets", "node"]
}
}
+50 -3
View File
@@ -46,16 +46,63 @@
"cargo fmt --"
]
},
"dependenciesMeta": {
"@apollo/protobufjs": {
"built": false
},
"@prisma/client": {
"built": true
},
"@prisma/engines": {
"built": true
},
"@scarf/scarf": {
"built": false
},
"@sentry/cli": {
"built": true
},
"@swc/core": {
"built": false
},
"core-js": {
"built": false
},
"electron": {
"built": true
},
"electron-winstaller": {
"built": true
},
"esbuild": {
"built": true
},
"msgpackr-extract": {
"built": false
},
"msw": {
"built": false
},
"prisma": {
"built": false
},
"protobufjs": {
"built": false
},
"unrs-resolver": {
"built": false
}
},
"devDependencies": {
"@affine-tools/cli": "workspace:*",
"@capacitor/cli": "^8.4.2",
"@faker-js/faker": "^10.1.0",
"@istanbuljs/schema": "^0.1.3",
"@magic-works/i18n-codegen": "^0.6.1",
"@playwright/test": "=1.58.2",
"@taplo/cli": "^0.7.0",
"@toeverything/infra": "workspace:*",
"@types/node": "^22.0.0",
"@typescript/native": "npm:typescript@7.0.2",
"@vanilla-extract/vite-plugin": "^5.0.0",
"@vitest/browser": "^4.1.10",
"@vitest/coverage-istanbul": "^4.1.10",
@@ -76,12 +123,12 @@
"oxlint": "1.78.0",
"oxlint-tsgolint": "7.0.2001",
"semver": "^7.7.3",
"typescript": "^5.9.3",
"typescript": "npm:@typescript/typescript6@6.0.2",
"unplugin-swc": "^1.5.9",
"vite": "^7.3.5",
"vitest": "^4.1.10"
},
"packageManager": "yarn@4.13.0",
"packageManager": "yarn@4.18.0",
"resolutions": {
"array-buffer-byte-length": "npm:@nolyfill/array-buffer-byte-length@^1",
"array-includes": "npm:@nolyfill/array-includes@^1",
+1 -1
View File
@@ -148,7 +148,7 @@
"sinon": "^21.0.1",
"socket.io-client": "^4.8.3",
"supertest": "^7.1.4",
"typescript": "^5.9.3",
"typescript": "npm:@typescript/typescript6@6.0.2",
"why-is-node-running": "^3.2.2"
},
"nodemonConfig": {
+1 -1
View File
@@ -2,7 +2,7 @@
"extends": "../../../tsconfig.web.json",
"include": ["./src", "./src/config.json"],
"compilerOptions": {
"types": ["build-config", "affine__env", "node"],
"types": ["assets", "build-config", "affine__env", "node"],
"resolveJsonModule": true,
"rootDir": "./src",
"outDir": "./dist",
+1 -1
View File
@@ -37,6 +37,6 @@
"@capacitor/cli": "^8.4.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
@@ -29,6 +29,6 @@
"devDependencies": {
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
+1 -1
View File
@@ -70,7 +70,7 @@
"rxjs": "^7.8.2",
"semver": "^7.7.3",
"tree-kill": "^1.2.2",
"typescript": "^5.9.3",
"typescript": "npm:@typescript/typescript6@6.0.2",
"uuid": "^14.0.0",
"vitest": "^4.1.8",
"zod": "^3.25.76"
+1 -1
View File
@@ -44,6 +44,6 @@
"@capacitor/cli": "^8.4.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
@@ -17,7 +17,7 @@
"@capacitor/core": "^8.4.2"
},
"devDependencies": {
"typescript": "^5.9.3",
"typescript": "npm:@typescript/typescript6@6.0.2",
"vitest": "^4.1.8"
}
}
+1 -1
View File
@@ -23,6 +23,6 @@
"devDependencies": {
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
+1 -1
View File
@@ -23,6 +23,6 @@
"devDependencies": {
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
+1 -1
View File
@@ -79,7 +79,7 @@
"@types/react-dom": "^19.0.2",
"@vanilla-extract/css": "^1.17.0",
"storybook": "^10.2.14",
"typescript": "^5.9.3",
"typescript": "npm:@typescript/typescript6@6.0.2",
"unplugin-swc": "^1.5.9",
"vite": "^7.3.5",
"vitest": "^4.1.8"
+1
View File
@@ -29,6 +29,7 @@
"@affine-tools/cli": "workspace:*",
"@affine-tools/utils": "workspace:*",
"glob": "^11.0.0",
"typescript": "npm:@typescript/typescript6@6.0.2",
"vitest": "^4.1.8"
}
}
+1 -1
View File
@@ -30,7 +30,7 @@
"@types/node": "^22.0.0",
"ava": "^7.0.0",
"rxjs": "^7.8.2",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
},
"engines": {
"node": ">= 10"
@@ -449,7 +449,6 @@ test('readonly mode', async ({ page }) => {
throw new Error('Cannot find editor');
}
// oxlint-disable-next-line typescript/no-explicit-any
(richTextA as any).inlineEditor.setReadonly(true);
});
@@ -1044,13 +1043,11 @@ test('yText should not contain \r', async ({ page }) => {
throw new Error('Cannot find test-rich-text');
}
// oxlint-disable-next-line typescript/no-explicit-any
const editor = (richText as any).inlineEditor as InlineEditor;
try {
editor.insertText({ index: 0, length: 0 }, 'abc\r');
} catch (e) {
// oxlint-disable-next-line typescript/no-explicit-any
return (e as any).message;
}
});
@@ -159,7 +159,6 @@ test.describe('single edgeless element to linked doc', () => {
const container = document.querySelector('affine-edgeless-root');
return container!.service.crud.getElementsByType('group').map(s => ({
type: s.type,
// oxlint-disable-next-line typescript/no-explicit-any
children: s.childElements.map((c: any) => c.type || c.flavour),
}));
});
+1
View File
@@ -0,0 +1 @@
declare module '*.css';
+7
View File
@@ -0,0 +1,7 @@
{
"name": "@types/assets",
"private": true,
"types": "./__all.d.ts",
"type": "module",
"version": "0.27.0"
}
+1 -1
View File
@@ -42,7 +42,7 @@
"tailwindcss": "^4.1.17",
"tsx": "^4.21.0",
"typanion": "^3.14.0",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
+1 -1
View File
@@ -17,6 +17,6 @@
},
"devDependencies": {
"@types/node": "^22.0.0",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
+1 -1
View File
@@ -12,7 +12,7 @@
"@affine-tools/cli": "workspace:*",
"@affine-tools/utils": "workspace:*",
"@googleapis/androidpublisher": "^36.0.0",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
},
"devDependencies": {
"@types/node": "^22.0.0"
+1 -1
View File
@@ -14,6 +14,6 @@
},
"devDependencies": {
"@types/node": "^22.0.0",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}
+1 -1
View File
@@ -18,6 +18,6 @@
"chalk": "^5.3.0",
"lodash-es": "^4.17.23",
"oxfmt": "0.63.0",
"typescript": "^5.9.3"
"typescript": "npm:@typescript/typescript6@6.0.2"
}
}

Some files were not shown because too many files have changed in this diff Show More