defineTemplate
defineTemplate<
P>(definition):TemplateBundle
A custom template, as its template bundle’s default export: export default defineTemplate({ … }). render checks
the locale, validates the props, selects the slots and renders the email once, with no prettifying; it throws a
sentence on a locale or props it refuses.
Type Parameters
Section titled “Type Parameters”P