Optionaloptions: Omit<TravelsOptions<F, true, P, S>, "autoArchive"> & { autoArchive?: true }ReadonlygetRevision: () => numberMonotonic token for committed observable timeline transitions.
ReadonlygetState: () => SBorrowed live state, the same value observers receive as event.state.
Typed as S so it can flow into stores and APIs that expect the state
type, but it must be treated as read-only: history patches apply to this
value, so mutating it outside Travels operations desynchronizes undo/redo.
In immutable mode its objects are also the values of retained patches, so
such a mutation rewrites the history that redo replays.
enableAutoFreeze freezes every state Travels produces after creation.
Readonlymutable: booleanReadonlysubscribe: (listener: (event: TravelsEvent<S, P>) => void) => () => voidOptionalamount: numberOptionalamount: numberOptionaloptions: TravelsSerializeOptionsCreate a Travels instance whose state is statically constrained to the durable JSON-shaped subset supported by patches and persistence.
Create a Travels instance whose state is statically constrained to the durable JSON-shaped subset supported by patches and persistence.
Create a Travels instance whose state is statically constrained to the durable JSON-shaped subset supported by patches and persistence.