@ue-too/board / index / TouchInputStateMachineExpansion
Type Alias: TouchInputStateMachineExpansion()<E, C, S, O>
TouchInputStateMachineExpansion<
E,C,S,O> = (stock,extend) =>Record<S,State<E,C,S,O>>
Defined in: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:466
The callback expandTouchInputStateMachine calls with the stock states.
Type Parameters
E
E extends TouchEventMapping
C
C extends TouchContext
S
S extends string
O
O extends TouchInputEventOutputMapping & Partial<Record<keyof E, unknown>>
Parameters
stock
Record<TouchStates, State<E, C, S, O>>
extend
StateExtender<E, C, S, O>
Returns
Record<S, State<E, C, S, O>>
Remarks
stock holds every built-in touch state already typed for the expanded machine; extend is createStateExtender bound to the same generics. Return the full state map for the expanded machine.