travels3.0
API ReferenceType Aliases

TravelsControlledTransition<S, P>

Travels 3.0.1. Travels 3 API reference for TravelsControlledTransition.

TravelsControlledTransition<S, P> = object

Defined in: src/type.ts:61

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

Type Parameters

S

S

P

P extends PatchesOption = { }

Properties

fromPosition

readonly fromPosition: number

Defined in: src/type.ts:68


inversePatches

readonly inversePatches: Patches<P>

Defined in: src/type.ts:67

Composed patches that roll the transition back.


patches

readonly patches: Patches<P>

Defined in: src/type.ts:65

Composed patches that move from fromPosition to toPosition.


state

readonly state: S

Defined in: src/type.ts:63

State known to Travels before the transition is applied.


toPosition

readonly toPosition: number

Defined in: src/type.ts:69

On this page