fsm-vir - v3.0.0
    Preparing search index...

    Type Alias NextStateCallback<State, Input>

    NextStateCallback: (
        params: CallbackParams<State, Input>,
    ) => { nextState: State } | undefined | { stop: true }

    Callback for determining the next state in the state machine.

    Type Parameters

    • State
    • Input

    Type Declaration

      • (
            params: CallbackParams<State, Input>,
        ): { nextState: State } | undefined | { stop: true }
      • Parameters

        Returns { nextState: State } | undefined | { stop: true }

        • {nextState: <State>}: Sets the next state.
          • {stop: true}: indicates that no more inputs should be processed. This is akin to indicating that the current state is the "Stop" state.
          • undefined: Indicates that no state change should occur.