mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
refactor(editor): should not rely on doc collection type (#9501)
This commit is contained in:
@@ -6,7 +6,7 @@ import type {
|
||||
} from '@blocksuite/block-std';
|
||||
import type { AffineEditorContainer } from '@blocksuite/presets';
|
||||
import type { StarterDebugMenu } from '@playground/apps/_common/components/starter-debug-menu.js';
|
||||
import type { BlockModel, Doc, DocCollection, Job } from '@store/index.js';
|
||||
import type { BlockModel, Doc, Job, Workspace } from '@store/index.js';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -36,7 +36,7 @@ declare global {
|
||||
mockDocModeService: typeof import('../../packages/playground/apps/_common/mock-services.js').mockDocModeService;
|
||||
};
|
||||
};
|
||||
collection: DocCollection;
|
||||
collection: Workspace;
|
||||
blockSchema: Record<string, typeof BlockModel>;
|
||||
doc: Doc;
|
||||
debugMenu: StarterDebugMenu;
|
||||
|
||||
Reference in New Issue
Block a user