@dxos/app-framework - v0.9.0
    Preparing search index...

    Interface HistoryTracker

    HistoryTracker interface - tracks operation history and provides undo.

    interface HistoryTracker {
        canUndo: () => boolean;
        undo: () => Effect<void, Error>;
        undoable: PubSub<UndoableEvent>;
        undoPromise: () => Promise<{ error?: Error }>;
    }
    Index

    Properties

    canUndo: () => boolean
    undo: () => Effect<void, Error>
    undoable: PubSub<UndoableEvent>

    Stream of undoable actions, published as they are recorded.

    undoPromise: () => Promise<{ error?: Error }>