ecspresso
    Preparing search index...

    Interface StateMachineDefinition<S>

    Immutable definition of a state machine. Shared across entities.

    interface StateMachineDefinition<S extends string> {
        id: string;
        initial: S;
        states: { readonly [K in string]: StateConfig<S, StateMachineWorld> };
    }

    Type Parameters

    • S extends string

      Union of state name strings

    Index

    Properties

    Properties

    id: string
    initial: S
    states: { readonly [K in string]: StateConfig<S, StateMachineWorld> }