Skip to content

MessageBody

MessageBody<T> = T extends unknown ? Omit<T, "source" | "v"> : never

Omit distributed over a union — a message body is one member’s shape minus the envelope, not the intersection of them all.

T extends PreviewMessage