mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { DocCollection } from '@blocksuite/store';
|
||||
import type { Workspace } from '@blocksuite/store';
|
||||
|
||||
export function createDefaultDoc(
|
||||
collection: DocCollection,
|
||||
collection: Workspace,
|
||||
options: { id?: string; title?: string } = {}
|
||||
) {
|
||||
const doc = collection.createDoc({ id: options.id });
|
||||
|
||||
Reference in New Issue
Block a user