weasel API - v0.8.0
    Preparing search index...

    Interface SerializedHistory

    Snapshot of an entire History instance. Designed to live alongside the scene snapshot in IDB so a reload restores the undo / redo stacks to exactly where they were.

    interface SerializedHistory {
        droppedEntries: number;
        nextEntryId: number;
        redoStack: SerializedHistoryEntry[];
        undoStack: SerializedHistoryEntry[];
        version: 1;
    }
    Index

    Properties

    droppedEntries: number

    Entries dropped because at least one of their ops lacked a name and therefore couldn't round-trip through the op-factory registry. Always present (zero when nothing was dropped) so callers can detect loss without parsing the debug log.

    nextEntryId: number

    Stored newest-first, mirroring the in-memory stack so a deserialized history matches the original's entries().redo ordering.

    version: 1