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
error TS2769: No overload matches this call.
Overload 1 of 2, '(data: MailDataRequired, isMultiple?: boolean | undefined, cb?: ((err: Error | ResponseError, result: [Response, {}]) => void) | undefined): Promise<...>', gave the following error.
Argument of type '{ from: string; to: string; templateId: string; dynamicTemplateData: { secretLoginCode: string; signInLink: string; }; }' is not assignable to parameter of type 'MailDataRequired'.
Type '{ from: string; to: string; templateId: string; dynamicTemplateData: { secretLoginCode: string; signInLink: string; }; }' is not assignable to type 'MailData & { content: MailContent[] & { 0: MailContent; }; }'.
Property 'content' is missing in type '{ from: string; to: string; templateId: string; dynamicTemplateData: { secretLoginCode: string; signInLink: string; }; }' but required in type '{ content: MailContent[] & { 0: MailContent; }; }'.
Overload 2 of 2, '(data: MailDataRequired[], isMultiple?: boolean | undefined, cb?: ((err: Error | ResponseError, result: [Response, {}]) => void) | undefined): Promise<...>', gave the following error.
Argument of type '{ from: string; to: string; templateId: string; dynamicTemplateData: { secretLoginCode: string; signInLink: string; }; }' is not assignable to parameter of type 'MailDataRequired[]'.
Object literal may only specify known properties, and 'from' does not exist in type 'MailDataRequired[]'.
46 sendgrid
~~~~~~~~
47 .send({
~~~~~~~~~~~~~
...
54 },
~~~~~~~~~~
55 })
~~~~~~~~
src/create-auth-challenge/node_modules/@sendgrid/mail/src/mail.d.ts:6:43
6 { text: string } | { html: string } | { content: MailContent[] & { 0: MailContent } });
~~~~~~~
'content' is declared here.
Technical details:
sendgrid-nodejs version:
node version:
The text was updated successfully, but these errors were encountered:
Issue Summary
#1041 which requires email content to be present breaks sending email with a template.
Steps to Reproduce
Code Snippet
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: