eo-typewriterjs / TCheckpoint
Type Alias: TCheckpoint
ts
type TCheckpoint = object;Defined in: core/player/types/checkpoint.type.ts:16
Description
A snapshot of the typewriter state at a specific point in the compiled step list. Used for fast random-access seeking without replaying from the beginning every time.
eventIndex is the index of the first playback step that has NOT yet been applied - i.e. applying steps from eventIndex onwards reproduces any later time.
Deprecated
Checkpoints are internal to the playback controller and no API returns them. This type will be removed in the next major version.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
time | readonly | number | core/player/types/checkpoint.type.ts:17 |
eventIndex | readonly | number | core/player/types/checkpoint.type.ts:18 |
state | readonly | TTypewriterState | core/player/types/checkpoint.type.ts:19 |