Interface IUndoOperation

interface IUndoOperation {
    description: string;
    size?: number;
    undo(): (() => void);
}

Properties

Methods

Properties

description: string
size?: number

The size of the undo operation. This allows the undo stack to be based on the operation size NOT the stack size. For example a very large write operation will take more memory than many small ones.

Methods

  • Returns (() => void)

      • (): void
      • Returns void