mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 13:58:50 +08:00
chore: fix oxlint errors (#13434)
#### PR Dependency Tree * **PR #13434** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Improved clarity of TypeScript error suppression comments across various test files and helper scripts. Comments now specify the reasons for ignoring specific type errors, enhancing code readability for developers. * **Chores** * Updated inline comments without affecting application functionality or user experience. No changes to features, logic, or test outcomes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -57,11 +57,11 @@ test('newly created page shows empty history', async ({ page }) => {
|
||||
|
||||
const pushCurrentPageUpdates = async (page: Page) => {
|
||||
const [workspaceId, guid, updates, state] = await page.evaluate(() => {
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
const Y = window.Y;
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
const spaceDoc = window.currentEditor.page.spaceDoc;
|
||||
// @ts-expect-error
|
||||
// @ts-expect-error ignore the type error
|
||||
const workspaceId: string = window.currentWorkspace.id;
|
||||
const updates: Uint8Array = Y.encodeStateAsUpdate(spaceDoc);
|
||||
const state: Uint8Array = Y.encodeStateVector(spaceDoc);
|
||||
|
||||
Reference in New Issue
Block a user