Optionalmetadata: TravelMetadataGo back in the history
Check if it's possible to archive the current state
Check if it's possible to go back
Check if it's possible to go forward
Go forward in the history
Get the controls object
Get the complete history of states
The history array. Reference equality indicates cache hit.
IMPORTANT: Treat the returned array and every state entry as read-only. They are cached internally.
Get the patches history
Get the current position in the history
Get the current state
Go to a specific position in the history
Remove all history and make the current state (including any unarchived temp patches) as the new initial state.
This is a destructive operation that discards all history and overwrites
the internal baseline. Future reset() calls will return to this snapshot.
Reset to the initial state
Serialize the current state, patch history, and position for persistence.
StaticdeserializeValidate and normalize a persisted Travels history snapshot.
Optionaloptions: TravelsDeserializeOptions<S, P>
Core Travels class for managing undo/redo history