typewriter-editor
Version:
A rich text editor using the Delta format with decorations and rendered with a tiny virtual dom
13 lines (12 loc) • 379 B
TypeScript
import { TextDocument, type EditorRange } from '@typewriter/document';
import { Editor } from '../Editor';
export interface VirtualRenderWhat {
old?: TextDocument;
doc?: TextDocument;
selection: EditorRange | null;
}
export declare function virtualRendering(editor: Editor): {
render: (what?: VirtualRenderWhat) => void;
init(): void;
destroy(): void;
};