UNPKG

520 BTypeScriptView Raw
1import { Operation, Range } from 'slate';
2interface Batch {
3 operations: Operation[];
4 selectionBefore: Range | null;
5}
6/**
7 * `History` objects hold all of the operations that are applied to a value, so
8 * they can be undone or redone as necessary.
9 */
10export interface History {
11 redos: Batch[];
12 undos: Batch[];
13}
14export declare const History: {
15 /**
16 * Check if a value is a `History` object.
17 */
18 isHistory(value: any): value is History;
19};
20export {};
21//# sourceMappingURL=history.d.ts.map
\No newline at end of file