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

    Type Alias HookTarget

    HookTarget:
        | { action?: string; from: StateType; scope: "edge"; to: StateType }
        | { scope: "state"; state: StateType }
        | { action: string; scope: "action" }
        | { scope: "global" }
        | { group: string; scope: "group" }

    Normalized description of the target a registry entry is bound to. Exactly one scope variant applies; the present fields depend on the scope:

    • 'edge' carries from + to (+ optional action for named hooks),
    • 'state' carries state,
    • 'action' carries action,
    • 'global' carries no further keys (it matches everything),
    • 'group' carries group (a named state group with a boundary hook).