@thingts/fsm-engine - v1.2.1
    Preparing search index...

    Type Alias FsmEngineFactory<State, Events, Context>

    FsmEngineFactory: [Context] extends [void]
        ? (params?: FactoryParams<Context>) => FsmEngine<State, Events, Context>
        : (params: FactoryParams<Context>) => FsmEngine<State, Events, Context>

    Factory function returned by FsmEngine.define.

    The returned function creates independent FSM instances that share the same definition and type parameters.

    If Context is void, the factory may be called with no argument or with { label?: string }.

    Otherwise, the factory requires { context: Context }, with optional { label?: string }.

    The optional label is used in trace output to help distinguish instances created from the same definition.

    Type Parameters

    • State extends string
    • Events extends EventMap
    • Context