mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
refactor(editor): remove block models global type (#10086)
This commit is contained in:
@@ -4,7 +4,7 @@ import { waitNextFrame } from './misc.js';
|
||||
|
||||
export async function updateBlockType(
|
||||
page: Page,
|
||||
flavour: BlockSuite.Flavour,
|
||||
flavour: string,
|
||||
type?: string
|
||||
) {
|
||||
await page.evaluate(
|
||||
@@ -16,7 +16,7 @@ export async function updateBlockType(
|
||||
},
|
||||
});
|
||||
},
|
||||
[flavour, type] as [BlockSuite.Flavour, string?]
|
||||
[flavour, type] as [string, string?]
|
||||
);
|
||||
await waitNextFrame(page, 400);
|
||||
}
|
||||
|
||||
@@ -556,7 +556,7 @@ export async function assertBlockType(
|
||||
export async function assertBlockFlavour(
|
||||
page: Page,
|
||||
id: string | number,
|
||||
flavour: BlockSuite.Flavour
|
||||
flavour: string
|
||||
) {
|
||||
const actual = await page.evaluate(
|
||||
({ id }) => {
|
||||
|
||||
Reference in New Issue
Block a user