Discriminated union of every kind of hook registration jssm understands,
pre-transition and post-transition. The kind field selects the
variant; remaining fields describe which transitions / states / actions
the hook is bound to and supply the HookHandler or
PostHookHandler to invoke.
Pre-transition variants ('hook', 'named', 'standard transition',
'main transition', 'forced transition', 'any transition',
'global action', 'any action', 'entry', 'exit', 'after',
'after any') may return a falsy value to veto a transition. Post-transition
variants ('post *') cannot veto and are invoked only after a
successful transition.
Discriminated union of every kind of hook registration jssm understands, pre-transition and post-transition. The
kindfield selects the variant; remaining fields describe which transitions / states / actions the hook is bound to and supply the HookHandler or PostHookHandler to invoke.Pre-transition variants (
'hook','named','standard transition','main transition','forced transition','any transition','global action','any action','entry','exit','after','after any') may return a falsy value to veto a transition. Post-transition variants ('post *') cannot veto and are invoked only after a successful transition.