Skip to content

StateNamesOfInstance

StateNamesOfInstance<TFsm> = TFsm extends Fsm ? TStateNames : TFsm extends BehavioralFsm ? TStateNames : never

Defined in: types.ts:111

Extracts state names from a concrete machina FSM instance.

Unlike keyof TFsm, this reads the class generic that stores user-defined state names, so adapter signatures stay tied to the configured states instead of widening to method/property names.

TFsm