@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias EmailTemplateVariable<K>

    EmailTemplateVariable:
        | Exclude<
            KeysOfUnion<NotificationFor<K>> & string,
            "template" | "status" | "type",
        >
        | "recipientName"

    Payload fields plus layout-supplied recipientName, minus the condition axes: the row is the status and type exists only to be branched on, so interpolating either would put a raw US_BANK_ACH in front of a customer.

    KeysOfUnion, not keyof: keyof on a union yields only the keys every member shares, which for a union K is the four fields all eight payloads have in common.

    Type Parameters