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.
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'shooks_on(state)/hooks_on(from→to)/hooks_on(action)/hooks_on(&group)set with one parameter shape.