mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 04:36:13 +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,8 +1,3 @@
|
||||
import type {
|
||||
autoArrangeElementsCommand,
|
||||
autoResizeElementsCommand,
|
||||
} from './commands/auto-align.js';
|
||||
import type { reassociateConnectorsCommand } from './commands/reassociate-connectors.js';
|
||||
import { SurfaceBlockComponent } from './surface-block.js';
|
||||
import { SurfaceBlockVoidComponent } from './surface-block-void.js';
|
||||
import type { SurfaceBlockModel } from './surface-model.js';
|
||||
@@ -21,10 +16,5 @@ declare global {
|
||||
interface BlockModels {
|
||||
'affine:surface': SurfaceBlockModel;
|
||||
}
|
||||
interface Commands {
|
||||
reassociateConnectors: typeof reassociateConnectorsCommand;
|
||||
autoArrangeElements: typeof autoArrangeElementsCommand;
|
||||
autoResizeElements: typeof autoResizeElementsCommand;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user