Type alias MessageMetadata<M>
MessageMetadata<M>: {
handlers: string[];
name: keyof M;
producer?: string;
schema: ZodType<M[keyof M]>;
type: "command" | "event" | "message";
}
Type declaration
-
handlers: string[]
-
name: keyof M
-
Optional
producer?: string
-
schema: ZodType<M[keyof M]>
-
type: "command" | "event" | "message"
Internal message details used as main drivers of public interfaces and documentation