Skip to content

FsmEventMap

Defined in: types.ts:794

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

Fired when an input is deferred for later replay

inputName: string


handled: object

Defined in: types.ts:805

Fired after an input has been successfully handled

inputName: string


handling: object

Defined in: types.ts:802

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

inputName: string


invalidstate: object

Defined in: types.ts:811

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

stateName: string


nohandler: object

Defined in: types.ts:808

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

args: unknown[]

inputName: string


transitioned: object

Defined in: types.ts:799

Fired just after a state transition completes

fromState: TStateNames

toState: TStateNames


transitioning: object

Defined in: types.ts:796

Fired just before a state transition occurs

fromState: TStateNames

toState: TStateNames