mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 02:26:21 +08:00
refactor(editor): rename doc to blocks (#9510)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import type { BlockModel, Doc, Text } from '@blocksuite/store';
|
||||
import type { BlockModel, Blocks, Text } from '@blocksuite/store';
|
||||
|
||||
export function transformModel(
|
||||
model: BlockModel,
|
||||
flavour: BlockSuite.Flavour,
|
||||
props?: Parameters<Doc['addBlock']>[1]
|
||||
props?: Parameters<Blocks['addBlock']>[1]
|
||||
) {
|
||||
const doc = model.doc;
|
||||
const parent = doc.getParent(model);
|
||||
|
||||
Reference in New Issue
Block a user