Type Alias: DispatchContextHookRegistrations
ts
type DispatchContextHookRegistrations = {
[E in keyof DispatchContextHooks]?:
| HookHandler<DispatchContextHooks[E][0], DispatchContextHooks[E][1]>
| HookHandler<DispatchContextHooks[E][0], DispatchContextHooks[E][1]>[];
};Optional hook registrations supplied to @nhtio/adk!DispatchContext at construction time.
Remarks
Each key may be a single handler or an array of handlers. Handlers are registered in order and fired synchronously (fire-and-forget) on each corresponding emit call.