sendgrid-nodejs
sendgrid-nodejs copied to clipboard
MailDataRequired requires MailContent?
Issue Summary
I'm running into a problem with Typescript because it doesn't let me build an email without a content field. Is the MailDataRequired
correct?
I never used to send content with my emails. Only substitutions. The content / templates live on your servers.
Code Snippet
export type MailDataRequired = MailData & (
{ text: string } | { html: string } | { templateId: string } | { content: MailContent[] & { 0: MailContent } });
Exception/Log
# paste exception/log here
Technical details:
- sendgrid-nodejs version: @sendgrid/client@^6.5.3