@vericus/slate-kit-history
Version:
plugin that group together history of selections to the next editing event on slate for undo/redo
10 lines • 398 B
TypeScript
import { Editor, Value } from "slate";
import hasRedo from "./hasRedo";
import hasUndo from "./hasUndo";
export default function createQueries(): {
hasRedo: typeof hasRedo;
hasUndo: typeof hasUndo;
isRedo: (editor: Editor, prevValue: Value, currValue: Value) => boolean;
isUndo: (editor: Editor, prevValue: Value, currValue: Value) => boolean;
};
//# sourceMappingURL=index.d.ts.map