mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 14:27:02 +08:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { replaceIdMiddleware } from '@blocksuite/blocks';
|
||||
import { type DocCollection, type DocSnapshot, Job } from '@blocksuite/store';
|
||||
import { type DocSnapshot, Job, type Workspace } from '@blocksuite/store';
|
||||
|
||||
export async function importFromSnapshot(
|
||||
collection: DocCollection,
|
||||
collection: Workspace,
|
||||
snapshot: DocSnapshot
|
||||
) {
|
||||
const job = new Job({
|
||||
|
||||
Reference in New Issue
Block a user