Type Alias: BusMessageContext<P>
Makaio Framework / hooks / BusMessageContext
Type Alias: BusMessageContext<P>
Section titled “Type Alias: BusMessageContext<P>”BusMessageContext<
P> =InterceptorContext<P>
Defined in: ../../../packages/hooks/src/types/hook-context.ts:29
Generic BusMessage context for escape hatch. Simply an alias for InterceptorContext - no extra fields needed.
Type Parameters
Section titled “Type Parameters”P = unknown
Type Composition
Section titled “Type Composition”Resolved Shape
Section titled “Resolved Shape”type BusMessageContext = { subject: string; payload: P; messageId: string; correlationId: string | undefined; stopPropagation: () => void; replacePayload: (newPayload: P) => void; next: () => void;};