Type Alias UndoEvent

UndoEvent: UndoEventWithoutAttachedState & {
    attachedState: {
        afterEvent?: unknown;
        beforeEvent?: unknown;
    };
}

An undo/redo event.

Type declaration

  • attachedState: {
        afterEvent?: unknown;
        beforeEvent?: unknown;
    }

    The state saved before the event actions started / after the event actions finished.

    • OptionalafterEvent?: unknown

      The state saved after the event actions finished.

    • OptionalbeforeEvent?: unknown

      The state saved before the event actions started.