valtio-fsm
    Preparing search index...

    Interface MachineOptions<TState>

    Configuration options for state machine creation

    interface MachineOptions<TState extends string> {
        enableHistory?: boolean;
        historySize?: number;
        onTransition?: TransitionListener<TState>;
    }

    Type Parameters

    • TState extends string

      String literal type representing valid states

    Index

    Properties

    enableHistory?: boolean

    Whether to enable transition history tracking

    historySize?: number

    Maximum number of history entries to keep

    onTransition?: TransitionListener<TState>

    Initial transition listener