HistoryAction: {
    combine: boolean;
    name: string;
    redo: () => void;
    undo: () => void;
}

Represents an action in the history.

Type declaration

  • combine: boolean

    Whether to combine with the previous action with the same name. The effect of combining is merely changing the redo function to be the redo function of this action. The original undo function is not modified.

  • name: string

    The action name.

  • redo: () => void

    The redo function.

  • undo: () => void

    The undo function.