ixfx
    Preparing search index...

    Type Alias MachineState<V>

    Encapsulation of a 'running' machine description and state.

    See:

    type MachineState<V extends Transitions> = {
        machine: Readonly<
            Record<StateNames<V>, readonly StateTargetStrict<V>[]>,
        >;
        value: StateNames<V>;
        visited: readonly StateNames<V>[];
    }

    Type Parameters

    Index

    Properties

    Properties

    machine: Readonly<Record<StateNames<V>, readonly StateTargetStrict<V>[]>>

    Definition of state machine

    value: StateNames<V>

    Current state

    visited: readonly StateNames<V>[]

    List of unique states visited. Won't contain the current state unless it has already been visited.