switchyard
    Preparing search index...

    Interface StateConfig

    interface StateConfig {
        after?: Record<string | number, TransitionConfig | TransitionConfig[]>;
        always?: TransitionConfig[];
        entry?: Action[];
        exit?: Action[];
        history?: "shallow" | "deep";
        initial?: string;
        invoke?: InvokeConfig[];
        on?: Record<string, TransitionConfig | TransitionConfig[]>;
        states?: Record<string, StateConfig>;
        target?: string;
        type?: "history" | "final" | "parallel";
    }
    Index
    after?: Record<string | number, TransitionConfig | TransitionConfig[]>

    Delayed transitions, keyed by milliseconds or a named delay (see delays); cancelled if the state exits first.

    always?: TransitionConfig[]

    Optionalentry

    entry?: Action[]
    exit?: Action[]
    history?: "shallow" | "deep"

    For type: 'history'. Defaults to shallow.

    initial?: string

    A compound state's initial child key. Defaults to the first non-history child.

    invoke?: InvokeConfig[]

    Actors that run while this state is active.

    on?: Record<string, TransitionConfig | TransitionConfig[]>

    Keys are event descriptors, as in xstate v5: an exact name, 'error.*' for error and every error.… event, or '*' for all. (SCXML's bare-prefix matching would make done.state.p also match done.state.p.r1; SCXML import translates to this form.)

    states?: Record<string, StateConfig>
    target?: string

    For type: 'history': entered when nothing is recorded. Defaults to the parent's initial.

    type?: "history" | "final" | "parallel"