mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 11:30:04 +08:00
feat(editor): merge store and blocks (#9591)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { BlockModel, Blocks, Text } from '@blocksuite/store';
|
||||
import type { BlockModel, Store, Text } from '@blocksuite/store';
|
||||
|
||||
export function transformModel(
|
||||
model: BlockModel,
|
||||
flavour: BlockSuite.Flavour,
|
||||
props?: Parameters<Blocks['addBlock']>[1]
|
||||
props?: Parameters<Store['addBlock']>[1]
|
||||
) {
|
||||
const doc = model.doc;
|
||||
const parent = doc.getParent(model);
|
||||
|
||||
Reference in New Issue
Block a user