Files
AFFiNE-Mirror/blocksuite/affine/block-edgeless-text/src/effects.ts
T
2024-12-27 10:48:12 +00:00

18 lines
458 B
TypeScript

import type { insertEdgelessTextCommand } from './commands/insert-edgeless-text';
import { EdgelessTextBlockComponent } from './edgeless-text-block';
export function effects() {
customElements.define('affine-edgeless-text', EdgelessTextBlockComponent);
}
declare global {
namespace BlockSuite {
interface CommandContext {
textId?: string;
}
interface Commands {
insertEdgelessText: typeof insertEdgelessTextCommand;
}
}
}