Skip to content

eo-typewriterjs


eo-typewriterjs / TCheckpoint

Type Alias: TCheckpoint

ts
type TCheckpoint = object;

Defined in: core/player/types/checkpoint.type.ts:13

Description

A snapshot of the typewriter state at a specific point in the compiled event list. Used for fast random-access seeking without replaying from the beginning every time.

eventIndex is the index of the first event that has NOT yet been applied - i.e. reducing from this state starting at eventIndex will reproduce any later time.

Properties

PropertyModifierTypeDefined in
timereadonlynumbercore/player/types/checkpoint.type.ts:14
eventIndexreadonlynumbercore/player/types/checkpoint.type.ts:15
statereadonlyTTypewriterStatecore/player/types/checkpoint.type.ts:16

Released under the MIT License.