travels
    Preparing search index...

    Type Alias TravelsControlledTransition<S, P>

    Patch transition delegated to an external state owner by a controlled Travels journal.

    type TravelsControlledTransition<S, P extends PatchesOption = {}> = {
        fromPosition: number;
        inversePatches: Patches<P>;
        patches: Patches<P>;
        state: S;
        toPosition: number;
    }

    Type Parameters

    Index

    Properties

    fromPosition: number
    inversePatches: Patches<P>

    Composed patches that roll the transition back.

    patches: Patches<P>

    Composed patches that move from fromPosition to toPosition.

    state: S

    State known to Travels before the transition is applied.

    toPosition: number