with-history.d.ts 519 B

123456789101112
  1. import { HistoryEditor } from './history-editor';
  2. /**
  3. * The `withHistory` plugin keeps track of the operation history of a Slate
  4. * editor as operations are applied to it, using undo and redo stacks.
  5. *
  6. * If you are using TypeScript, you must extend Slate's CustomTypes to use
  7. * this plugin.
  8. *
  9. * See https://docs.slatejs.org/concepts/11-typescript to learn how.
  10. */
  11. export declare const withHistory: <T extends import("slate").BaseEditor>(editor: T) => T & HistoryEditor;
  12. //# sourceMappingURL=with-history.d.ts.map