vapor-chamber API reference - v1.3.0
    Preparing search index...

    Interface HistoryState

    History plugin - tracks command history for undo/redo

    v0.3.0: undo() now executes the inverse handler if the command was registered with { undo: fn } via bus.register(). Falls back to data-only pop if no inverse handler exists.

    interface HistoryState {
        past: Command[];
        future: Command[];
        canUndo: boolean;
        canRedo: boolean;
    }
    Index

    Properties

    past: Command[]
    future: Command[]
    canUndo: boolean
    canRedo: boolean