Skip to content

@ue-too/being / index / StateChangeCallback

Type Alias: StateChangeCallback()<States> ​

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

Defined in: interface.ts:297

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.