You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MailData currently is able to take a dynamic_template_data property, but its interface is missing that field.
In a similar way, PersonalizationData has a field called dynamicTemplateData that, as far as I can tell, does nothing for dynamic templates. However, if we use dynamic_template_data, the templates' handlebar will be properly substituted (but it will raise the same tslint error).
Type '{ to: string; from: any; templateId: string; asm: { groupId: number; }; dynamic_template_data: any; mail_settings: { sandbox_mode: { enable: any; }; }; }' is not assignable to type 'MailData'. Object literal may only specify known properties, but 'dynamic_template_data' does not exist in type 'MailData'. Did you mean to write 'dynamicTemplateData'?ts(2322)
Issue Summary
MailData currently is able to take a
dynamic_template_data
property, but its interface is missing that field.In a similar way, PersonalizationData has a field called
dynamicTemplateData
that, as far as I can tell, does nothing for dynamic templates. However, if we usedynamic_template_data
, the templates' handlebar will be properly substituted (but it will raise the same tslint error).It is probably related to this commit, where
dynamicTemplateData
should have instead beendynamic_template_data
https://github.com/sendgrid/sendgrid-nodejs/pull/716/files
Steps to Reproduce
dynamic_template_data
Expected Behaviour:
tslint shows no error
Actual Behaviour
tslint raises an
Object literal may only specify known properties
errorTechnical details:
The text was updated successfully, but these errors were encountered: