API ReferenceType Aliases
RebasableManualTravelsControls<S, P>
Travels 3.0.1. Travels 3 API reference for RebasableManualTravelsControls.
RebasableManualTravelsControls<
S,P> =ManualTravelsControls<S,P> &object
Defined in: src/type.ts:484
Type Declaration
rebase()
readonlyrebase: () =>void
Remove all history and make the current state as the new initial state.
Returns
void
Remarks
IMPORTANT: This is a destructive operation. All previous and future history entries are discarded,
and the current state (including any unarchived temp patches) becomes the new baseline (position 0). Any subsequent reset()
calls will return to this new baseline, not the original initial state.
Type Parameters
S
S
P
P extends PatchesOption = { }