Skip to content

eo-typewriterjs


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 ​

PropertyModifierTypeDescriptionDefined in
statereadonlyTTypewriterStateDescription The current typewriter document state at the time of invocationcore/commands/types/callback-hook.type.ts:18
stepIndexreadonlynumberDescription The logical step index within the command (0-based)core/commands/types/callback-hook.type.ts:24
stepCountreadonlynumberDescription Total number of steps for this commandcore/commands/types/callback-hook.type.ts:30
unitreadonlyTAdvanceUnit | nullDescription The advance unit for the current step, or null for instant commandscore/commands/types/callback-hook.type.ts:36
signalreadonlyAbortSignalDescription AbortSignal that is aborted when playback is cancelledcore/commands/types/callback-hook.type.ts:42

Released under the MIT License.