Type Alias StateChangeCallback<States>

StateChangeCallback: (currentState: States, nextState: States) => void

This is the type for the callback that is called when the state changes.

Type Parameters

  • States extends string = "IDLE"

Type declaration