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

    Type Alias HookQuery

    HookQuery:
        | StateType
        | { action?: string; from: StateType; to: StateType }
        | { action: string }
        | { group: string }

    Query for jssm!Machine.has_hook / jssm!Machine.hooks_on. A bare string is read as a state name; an { from, to, action? } object is read as an edge (optionally a named edge); an { action } object is read as a named action; a { group } object is read as a named state group. This mirrors the spec's hooks_on(state) / hooks_on(from→to) / hooks_on(action) / hooks_on(&group) set with one parameter shape.