travels
    Preparing search index...

    Type Alias TravelsEvent<S, P>

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

    Type Parameters

    Index

    Properties

    historyLength: number

    Number of entries currently retained in history.

    metadata?: Readonly<TravelMetadata>

    Lazily cloned, shallow-frozen metadata shared by this event's observers.

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

    position: number

    Borrowed live state view. Mutate state only through Travels operations.

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