Skip to content

MessageTemplateComponent

MessageTemplateComponent = TemplateHeaderComponent | TemplateBodyComponent | TemplateFooterComponent | TemplateButtonsComponent

Defined in: src/types/templates.ts:179

A template component, discriminated by its UPPERCASE type. Each member carries an index signature so newer component shapes do not error.

Re-exported from the package root as MessageTemplateComponent to avoid a collision with the send-side TemplateComponent from ./messages.ts.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.