Skip to content
1 min read · 44 words

Type Alias: DispatchContextHookRegistrations

ts
type DispatchContextHookRegistrations = {
  [E in keyof DispatchContextHooks]?:
    | HookHandler<DispatchContextHooks[E][0], DispatchContextHooks[E][1]>
    | HookHandler<DispatchContextHooks[E][0], DispatchContextHooks[E][1]>[];
};

Defined in: lib/types/dispatch_context.ts:100

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.