import { Type } from '@angular/core'; import { KeyCode } from './utils/keycodes'; export interface EditorBlock { id: string; type: string; data: T; } export interface EditorData { blocks: EditorBlock[]; } export interface EditorPlugin { /** * The component to instantiate when the path matches. * Can be empty if child routes specify components. */ component?: Type; loadChildren?: () => Promise>; type?: string; } export interface EditorCommand { label: string; data: T; type: string; shortcut?: KeyCode[]; } export interface PluginConversion { type: string; value?: string; }