mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-20 19:42:04 +08:00
18 lines
458 B
TypeScript
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;
|
|
}
|
|
}
|
|
}
|