InputNamesOf
InputNamesOf<
TStates> =Exclude<{ [S in keyof TStates]: keyof TStates[S] & string }[keyofTStates],SpecialStateKeys>
Defined in: types.ts:59
Extracts input names as a string literal union from a states config object. Collects all handler keys across ALL states, then strips out lifecycle hooks and special keys (_onEnter, _onExit, _child, *).
This is what flows into handle(inputName) to provide compile-time
validation of input names.
Type Parameters
Section titled “Type Parameters”TStates
Section titled “TStates”TStates
Example
Section titled “Example”How it works:
{ [S in keyof TStates]: keyof TStates[S] & string }— maps each state to the union of its handler key names[keyof TStates]— collapses the mapped type into a flat union of ALL handler keys across every stateExclude<..., SpecialStateKeys>— strips lifecycle/special keys