Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IImmutableStateMachine<T>

The public APIs of the IStateMachine

Type parameters

  • T

Hierarchy

  • IImmutableStateMachine

Implemented by

Index

Methods

bindHookHandler

  • Add a new hook handler in the specified state and hook type.

    If an hook already exist with the same combination of state and hookType it will be replaced.

    Parameters

    • applyToStates: T | Array<T>

      The state associated to this hook

    • hookType: StateHookType

      The hook type

    • handler: HookHandler<T>

      The executed handler

    Returns void

can

  • can(newState: T): boolean

getAllStates

getNextStates

  • getNextStates(): Array<T>

getState

  • getState(): T

Generated using TypeDoc