Skip to main content

Type Alias: UndoEvent

type UndoEvent = UndoEventWithoutAttachedState & object;

An undo/redo event.

Type Declaration​

attachedState​

attachedState: object;

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

attachedState.afterEvent?​

optional afterEvent?: unknown;

The state saved after the event actions finished.

attachedState.beforeEvent?​

optional beforeEvent?: unknown;

The state saved before the event actions started.