StateMachine

constructor(initialState: S)

Parameters

S

State type (typically an enum)

initialState

Starting state