JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Type Alias JssmRejectionEventDetail<mDT>

    Detail payload fired with a rejection event. Carries the resolved source and target plus an indication of who rejected the transition and why. reason is 'invalid' when no edge existed, 'hook' when a hook handler vetoed; hook_name is set when reason is 'hook'.

    type JssmRejectionEventDetail<mDT> = {
        action?: StateType;
        data: mDT;
        forced: boolean;
        from: StateType;
        hook_name?: string;
        next_data?: mDT;
        reason: "invalid" | "hook";
        to: StateType;
    }

    Type Parameters

    • mDT
    Index
    action?: StateType
    data: mDT
    forced: boolean
    from: StateType
    hook_name?: string
    next_data?: mDT
    reason: "invalid" | "hook"