history.d.ts 430 B

12345678910111213141516
  1. import { Operation } from 'slate';
  2. /**
  3. * `History` objects hold all of the operations that are applied to a value, so
  4. * they can be undone or redone as necessary.
  5. */
  6. export interface History {
  7. redos: Operation[][];
  8. undos: Operation[][];
  9. }
  10. export declare const History: {
  11. /**
  12. * Check if a value is a `History` object.
  13. */
  14. isHistory(value: any): value is History;
  15. };
  16. //# sourceMappingURL=history.d.ts.map