refactor(editor): playground doc collection typing migration (#9593)

This commit is contained in:
doodlewind committed 2025-01-09 03:07:43 +00:00
1 parent 5ff2254c83
commit e269cce141
19 files changed
+48 -84

No files matched your search

@@ -1,8 +1,8 @@
import { type DocCollection, Text } from '@blocksuite/store';
import { Text, type Workspace } from '@blocksuite/store';
import type { InitFn } from './utils.js';
export const empty: InitFn = (collection: DocCollection, id: string) => {
export const empty: InitFn = (collection: Workspace, id: string) => {
const doc = collection.getDoc(id) ?? collection.createDoc({ id });
doc.clear();