Skip to content

Type Alias: BusMessageContext<P>

Makaio Framework


Makaio Framework / hooks / BusMessageContext

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.

P = unknown

type BusMessageContext = {
subject: string;
payload: P;
messageId: string;
correlationId: string | undefined;
stopPropagation: () => void;
replacePayload: (newPayload: P) => void;
next: () => void;
};