refactor(editor): remove block models global type (#10086)

This commit is contained in:
Saul-Mirone
2025-02-11 11:00:57 +00:00
parent a725df6ebe
commit 39eb8625d6
157 changed files with 402 additions and 621 deletions
@@ -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);
}
+1 -1
View File
@@ -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 }) => {