Skip to content

FsmEventMap

Defined in: types.ts:457

Built-in event map for Fsm instances. Payloads do NOT include a client reference (Fsm is its own client).

TStateNames extends string = string

The state name union, flows into transition event payloads so fromState/toState are narrowed to actual state names.

deferred: object

Defined in: types.ts:477

Fired when an input is deferred for later replay

inputName: string


handled: object

Defined in: types.ts:468

Fired after an input has been successfully handled

inputName: string


handling: object

Defined in: types.ts:465

Fired when an input is about to be dispatched to a handler

inputName: string


invalidstate: object

Defined in: types.ts:474

Fired when a transition targets a state that doesn’t exist

stateName: string


nohandler: object

Defined in: types.ts:471

Fired when an input has no matching handler in the current state

args: unknown[]

inputName: string


transitioned: object

Defined in: types.ts:462

Fired just after a state transition completes

fromState: TStateNames

toState: TStateNames


transitioning: object

Defined in: types.ts:459

Fired just before a state transition occurs

fromState: TStateNames

toState: TStateNames