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

    Type Alias JssmDataChangeEventDetail<mDT>

    Detail payload fired with a data-change event. Fires whenever the machine's data payload is replaced. old_data is the value before the change; new_data is the value after. cause names the API family that performed the replacement: a data-bearing transition, an override, or a direct set_data call.

    type JssmDataChangeEventDetail<mDT> = {
        action?: StateType;
        cause: "transition" | "override" | "set_data";
        from?: StateType;
        new_data: mDT;
        old_data: mDT;
        to?: StateType;
    }

    Type Parameters

    • mDT
    Index
    action?: StateType
    cause: "transition" | "override" | "set_data"
    from?: StateType
    new_data: mDT
    old_data: mDT