Function findComponentByType

  • Type Parameters

    • T extends "HEADER" | "BODY" | "FOOTER" | "BUTTONS"

    Parameters

    Returns undefined | Extract<{
        example?: Record<string, unknown>;
        format?: WhatsAppTemplateHeaderFormat;
        text?: string;
        type: "HEADER";
    }, {
        type: T;
    }> | Extract<{
        example?: Record<string, unknown>;
        text: string;
        type: "BODY";
    }, {
        type: T;
    }> | Extract<{
        text: string;
        type: "FOOTER";
    }, {
        type: T;
    }> | Extract<{
        buttons: WhatsAppTemplateButton[];
        type: "BUTTONS";
    }, {
        type: T;
    }>

Generated using TypeDoc