@ue-too/being / StateChangeCallback
Type Alias: StateChangeCallback()<States>
StateChangeCallback<
States> = (currentState,nextState) =>void
Defined in: interface.ts:263
Type Parameters
States
States extends string = "IDLE"
Parameters
currentState
States
nextState
States
Returns
void
Description
This is the type for the callback that is called when the state changes.