Undo/redo params.

interface OccUndoRedoParams {
    dataAfter: any;
    dataBefore: any;
    name: string;
    onRedo: (
        context: OccUndoRedoController,
        theParams: OccUndoRedoParams,
    ) => void;
    onUndo: (
        context: OccUndoRedoController,
        theParams: OccUndoRedoParams,
    ) => void;
}

Properties

dataAfter: any

Data for second state.

dataBefore: any

Data for previous state.

name: string

Name of command.

onRedo: (context: OccUndoRedoController, theParams: OccUndoRedoParams) => void

On redo function (to restore second state).

onUndo: (context: OccUndoRedoController, theParams: OccUndoRedoParams) => void

On undo function (to restore previous state).