eo-typewriterjs / TCallbackContext
Type Alias: TCallbackContext
ts
type TCallbackContext = object;Defined in: core/commands/types/callback-hook.type.ts:13
Description
Context object passed to every before/after callback invocation
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
state | readonly | TTypewriterState | Description The current typewriter document state at the time of invocation | core/commands/types/callback-hook.type.ts:18 |
stepIndex | readonly | number | Description The logical step index within the command (0-based) | core/commands/types/callback-hook.type.ts:24 |
stepCount | readonly | number | Description Total number of steps for this command | core/commands/types/callback-hook.type.ts:30 |
unit | readonly | TAdvanceUnit | null | Description The advance unit for the current step, or null for instant commands | core/commands/types/callback-hook.type.ts:36 |
signal | readonly | AbortSignal | Description AbortSignal that is aborted when playback is cancelled | core/commands/types/callback-hook.type.ts:42 |