Skip to content

FsmEventMap

Defined in: types.ts:464

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:484

Fired when an input is deferred for later replay

inputName: string


handled: object

Defined in: types.ts:475

Fired after an input has been successfully handled

inputName: string


handling: object

Defined in: types.ts:472

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

inputName: string


invalidstate: object

Defined in: types.ts:481

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

stateName: string


nohandler: object

Defined in: types.ts:478

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

args: unknown[]

inputName: string


transitioned: object

Defined in: types.ts:469

Fired just after a state transition completes

fromState: TStateNames

toState: TStateNames


transitioning: object

Defined in: types.ts:466

Fired just before a state transition occurs

fromState: TStateNames

toState: TStateNames