CheckpointIds
The CheckpointIds
type is a representation of the list of checkpoint Ids
stored in a Checkpoints
object.
[Ids, Id | undefined, Ids]
There are three parts to a CheckpointsIds array:
- The 'backward' checkpoint
Ids
that can be rolled backward to (in other words, the checkpoints in the undo stack for thisStore
). They are in chronological order with the oldest checkpoint at the start of the array. - The current checkpoint
Id
of theStore
's state, orundefined
if the current state has not been checkpointed. - The 'forward' checkpoint
Ids
that can be rolled forward to (in other words, the checkpoints in the redo stack for thisStore
). They are in chronological order with the newest checkpoint at the end of the array.
Since
v1.0.0