eo-typewriterjs / TCallbackContext
Type Alias: TCallbackContext
ts
type TCallbackContext = object;Defined in: core/commands/types/callback-hook.type.ts:11
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:16 |
stepIndex | readonly | number | Description The logical step index within the command (0-based) | core/commands/types/callback-hook.type.ts:22 |
stepCount | readonly | number | Description Total number of steps for this command | core/commands/types/callback-hook.type.ts:28 |
unit | readonly | TAdvanceUnit | null | Description The advance unit for the current step, or null for instant commands | core/commands/types/callback-hook.type.ts:34 |
signal | readonly | AbortSignal | Description AbortSignal that is aborted when playback is cancelled | core/commands/types/callback-hook.type.ts:40 |