Type Alias TransitionResult

TransitionResult:
    | "Ok"
    | "FromNotFound"
    | "ToNotFound"
    | "Invalid"
    | "Terminal"

Transition result

  • 'Ok': transition valid
  • 'FromNotFound': the from state is missing from machine definition
  • 'ToNotFound': the 'to' state is missing from machine definition
  • 'Invalid': not allowed to transition to target state from the current state
  • 'Terminal': not allowed to transition because from state is the final state