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

    Type Alias FsmExitAction<State, Events, E, Context>

    FsmExitAction: (
        params: {
            context: Context;
            fsm: FsmActionApi<Events>;
            meta: Readonly<
                { event: E; payload: Readonly<PayloadOf<Events, E>>; toState: State },
            >;
            state: State;
        },
    ) => void

    Exit action callback.

    Runs when a state is exited.

    Type Parameters

    Type Declaration

      • (
            params: {
                context: Context;
                fsm: FsmActionApi<Events>;
                meta: Readonly<
                    { event: E; payload: Readonly<PayloadOf<Events, E>>; toState: State },
                >;
                state: State;
            },
        ): void
      • Parameters

        Returns void