@thingts/fsm-engine - v1.2.1
    Preparing search index...

    Interface FsmTransitionBuilder<State, Events, Context, K>

    Shared transition-declaring surface used by event builders and guarded transition builders.

    Supports declaring either an external transition to another state or an internal transition that stays in the current state.

    interface FsmTransitionBuilder<
        State extends string,
        Events extends EventMap,
        Context,
        K extends EventName<Events>,
    > {
        stay(
            body?: (
                t: FsmTransitionActionsBuilder<State, Events, Context, K>,
            ) => void,
        ): void;
        toState(
            target: State,
            body?: (t: FsmTransitionActionsBuilder<State, Events, Context, K>) => void,
        ): void;
    }

    Type Parameters

    Hierarchy

    Index

    Methods

    Methods