Skip to content

EventMapOfInstance

EventMapOfInstance<TFsm> = 0 extends 1 & TFsm ? EventMap : TFsm extends Fsm ? TEvents : TFsm extends BehavioralFsm ? TEvents : EventMap

Defined in: types.ts:221

Extracts the event payload map from a concrete machina FSM instance (#183). Same fallback rules as InputMapOfInstance: the wide map for an undeclared instance, for non-FSM types, and for any. machina-react derives its event hook’s name and payload types from this.

TFsm