UNPKG

@gravitywelluk/email-generator

Version:
10 lines (9 loc) 395 B
/** * Populate a html template replacing handlebar style values with your named values * * @param htmlTemplate The html string template with params {%param%} * @param emailData The email data to load into the template * * @returns interpolated email string template */ export declare const generateHTMLEmail: <D extends Record<string, any>>(htmlTemplate: string, emailData: D) => string;