Skip to content

@ue-too/board / index / TouchInputStateMachineExpansion

型エイリアス: TouchInputStateMachineExpansion()<E, C, S, O> ​

TouchInputStateMachineExpansion<E, C, S, O> = (stock, extend) => Record<S, State<E, C, S, O>>

定義: packages/board/src/input-interpretation/input-state-machine/touch-input-state-machine.ts:466

The callback expandTouchInputStateMachine calls with the stock states.

型パラメーター ​

E ​

E extends TouchEventMapping

C ​

C extends TouchContext

S ​

S extends string

O ​

O extends TouchInputEventOutputMapping & Partial<Record<keyof E, unknown>>

パラメータ ​

stock ​

Record<TouchStates, State<E, C, S, O>>

extend ​

StateExtender<E, C, S, O>

戻り値 ​

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.