UNPKG

ngx-editor

Version:

The Rich Text Editor for Angular, Built on ProseMirror

11 lines (10 loc) 342 B
import type { EditorState, Command } from 'prosemirror-state'; import { InsertCommand } from './types'; type HistoryMode = 'undo' | 'redo'; declare class History implements InsertCommand { mode: HistoryMode; constructor(mode: HistoryMode); insert(): Command; canExecute(state: EditorState): boolean; } export default History;