travels
    Preparing search index...

    Type Alias TravelsEvent<S, P>

    type TravelsEvent<S, P extends PatchesOption = {}> = {
        historyLength: number;
        metadata?: TravelMetadata;
        patches: TravelPatches<P>;
        position: number;
        state: S;
        type: TravelsEventType;
    }

    Type Parameters

    Index

    Properties

    historyLength: number

    Number of entries currently retained in history.

    metadata?: TravelMetadata
    patches: TravelPatches<P>

    Lazily materialized event-local patches that transform the previously published state. Treat the shared snapshot as read-only.

    position: number
    state: S

    The committed operation. Handle unrecognized values in a default branch.