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

    Type Alias HookHandler<mDT>

    HookHandler: (hook_context: HookContext<mDT>) => HookResult<mDT>

    Signature of a pre-transition hook handler. Receives the current and proposed-next data payloads via a HookContext and returns a HookResult: a falsy result vetoes the transition, a truthy result allows it, and a HookComplexResult can additionally rewrite the next state or next data.

    Type Parameters

    • mDT

    Type Declaration