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

    Type Alias HookComplexResult<mDT>

    Richer hook return value used when a hook needs to do more than just accept or veto a transition. pass is the required accept/veto flag (kept non-optional so that returning a stray object doesn't accidentally veto everything). The optional state overrides the destination state, data overrides the data observed by other hooks in the same chain, and next_data overrides the data committed after the transition.

    type HookComplexResult<mDT> = {
        data?: mDT;
        next_data?: mDT;
        pass: boolean;
        state?: StateType;
    }

    Type Parameters

    • mDT
    Index
    data?: mDT
    next_data?: mDT
    pass: boolean
    state?: StateType