Documentation
    Preparing search index...

    Class BaseStateMachine<TState, TContext>Abstract

    Base Abstract class representing state machines. Encapsulates the current state and shared execution context.

    Type Parameters

    • TState
    • TContext

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    context: TContext
    currentState: TState

    Methods

    • Returns the context bound to the machine.

      Returns TContext

      The active context object.

    • Returns the active state of the machine.

      Returns TState

      The current state.

    • Merges new properties into the state machine's execution context.

      Parameters

      • newContext: Partial<TContext>

        Partial context to merge.

      Returns void