mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
refactor(editor): remove dependency of command global types (#9903)
Closes: [BS-2216](https://linear.app/affine-design/issue/BS-2216/remove-global-types-in-command)
This commit is contained in:
@@ -1,16 +1,3 @@
|
||||
import type { IndentContext } from '@blocksuite/affine-shared/types';
|
||||
|
||||
import type { convertToNumberedListCommand } from './commands/convert-to-numbered-list.js';
|
||||
import type {
|
||||
canDedentListCommand,
|
||||
dedentListCommand,
|
||||
} from './commands/dedent-list.js';
|
||||
import type {
|
||||
canIndentListCommand,
|
||||
indentListCommand,
|
||||
} from './commands/indent-list.js';
|
||||
import type { listToParagraphCommand } from './commands/list-to-paragraph.js';
|
||||
import type { splitListCommand } from './commands/split-list.js';
|
||||
import { ListBlockComponent } from './list-block.js';
|
||||
|
||||
export function effects() {
|
||||
@@ -18,23 +5,6 @@ export function effects() {
|
||||
}
|
||||
|
||||
declare global {
|
||||
namespace BlockSuite {
|
||||
interface CommandContext {
|
||||
listConvertedId?: string;
|
||||
indentContext?: IndentContext;
|
||||
}
|
||||
|
||||
interface Commands {
|
||||
convertToNumberedList: typeof convertToNumberedListCommand;
|
||||
canDedentList: typeof canDedentListCommand;
|
||||
canIndentList: typeof canIndentListCommand;
|
||||
dedentList: typeof dedentListCommand;
|
||||
indentList: typeof indentListCommand;
|
||||
listToParagraph: typeof listToParagraphCommand;
|
||||
splitList: typeof splitListCommand;
|
||||
}
|
||||
}
|
||||
|
||||
interface HTMLElementTagNameMap {
|
||||
'affine-list': ListBlockComponent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user