UNPKG

typewriter-editor

Version:

A rich text editor using the Delta format with decorations and rendered with a tiny virtual dom

11 lines (10 loc) 287 B
import { TextDocument } from '@typewriter/document'; import { Editor } from '../Editor'; export interface RenderWhat { old?: TextDocument; doc?: TextDocument; } export declare function rendering(editor: Editor): { render: (what?: RenderWhat) => void; destroy(): void; };