mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 19:40:30 +08:00
refactor(editor): remove deprecated editor slot (#9908)
This commit is contained in:
@@ -4,19 +4,11 @@ import type {
|
||||
DocMode,
|
||||
GroupElementModel,
|
||||
} from '@blocksuite/affine-model';
|
||||
import type { Slot } from '@blocksuite/global/utils';
|
||||
import type { Store } from '@blocksuite/store';
|
||||
|
||||
/** Common context interface definition for block models. */
|
||||
|
||||
type EditorSlots = {
|
||||
docUpdated: Slot<{ newDocId: string }>;
|
||||
};
|
||||
|
||||
export type AbstractEditor = {
|
||||
doc: Store;
|
||||
mode: DocMode;
|
||||
readonly slots: EditorSlots;
|
||||
} & HTMLElement;
|
||||
|
||||
export type Connectable = Exclude<
|
||||
|
||||
Reference in New Issue
Block a user