Skip to content

FsmEventMap

Defined in: types.ts:1247

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

Fired when an input is deferred for later replay

inputName: string


handled: object

Defined in: types.ts:1258

Fired after an input has been successfully handled

inputName: string


handling: object

Defined in: types.ts:1255

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

inputName: string


invalidstate: object

Defined in: types.ts:1264

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

stateName: string


nohandler: object

Defined in: types.ts:1261

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

args: unknown[]

inputName: string


transitioned: object

Defined in: types.ts:1252

Fired just after a state transition completes

fromState: TStateNames

toState: TStateNames


transitioning: object

Defined in: types.ts:1249

Fired just before a state transition occurs

fromState: TStateNames

toState: TStateNames