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).
Type Parameters
Section titled “Type Parameters”TStateNames
Section titled “TStateNames”TStateNames extends string = string
The state name union, flows into transition event payloads so fromState/toState are narrowed to actual state names.
Properties
Section titled “Properties”deferred
Section titled “deferred”deferred:
object
Defined in: types.ts:477
Fired when an input is deferred for later replay
inputName
Section titled “inputName”inputName:
string
handled
Section titled “handled”handled:
object
Defined in: types.ts:468
Fired after an input has been successfully handled
inputName
Section titled “inputName”inputName:
string
handling
Section titled “handling”handling:
object
Defined in: types.ts:465
Fired when an input is about to be dispatched to a handler
inputName
Section titled “inputName”inputName:
string
invalidstate
Section titled “invalidstate”invalidstate:
object
Defined in: types.ts:474
Fired when a transition targets a state that doesn’t exist
stateName
Section titled “stateName”stateName:
string
nohandler
Section titled “nohandler”nohandler:
object
Defined in: types.ts:471
Fired when an input has no matching handler in the current state
args:
unknown[]
inputName
Section titled “inputName”inputName:
string
transitioned
Section titled “transitioned”transitioned:
object
Defined in: types.ts:462
Fired just after a state transition completes
fromState
Section titled “fromState”fromState:
TStateNames
toState
Section titled “toState”toState:
TStateNames
transitioning
Section titled “transitioning”transitioning:
object
Defined in: types.ts:459
Fired just before a state transition occurs
fromState
Section titled “fromState”fromState:
TStateNames
toState
Section titled “toState”toState:
TStateNames