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

    Type Alias JssmSerialization<DataType>

    Persistable snapshot of a Machine produced by jssm!Machine.serialize and consumed by jssm!deserialize. Carries the current state, the associated machine data, the recent history (subject to the configured capacity), and metadata to detect version-skew on rehydration.

    type JssmSerialization<DataType> = {
        comment?: string;
        data: DataType;
        history: [string, DataType][];
        history_capacity: number;
        jssm_version: string;
        state: StateType;
        timestamp: number;
    }

    Type Parameters

    • DataType

      The type of the user-supplied data payload (mDT).

    Index
    comment?: string
    data: DataType
    history: [string, DataType][]
    history_capacity: number
    jssm_version: string
    state: StateType
    timestamp: number