sendgrid-nodejs icon indicating copy to clipboard operation
sendgrid-nodejs copied to clipboard

MailDataRequired requires MailContent?

Open 0x80 opened this issue 4 years ago • 26 comments

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

0x80 avatar Mar 07 '20 10:03 0x80