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
The API for Node JS is confusing and not aligned with the API:
there's MailData.text & html but there's also MailData.content which is not optional when using MailData. The two first are not in the API doc but content is https://sendgrid.com/docs/api-reference/
Readme mentions internal classe Mail that seems like an option to use but then the typing is not aligned with anything in the documentation. Typescript says you can't call send with Mail or MailJSON.
Great catch! When using dynamic transactional templates, we don't need to set the content values. I believe the change will need to be implemented here.
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
The API for Node JS is confusing and not aligned with the API:
MailData.text
&html
but there's alsoMailData.content
which is not optional when usingMailData
. The two first are not in the API doc butcontent
is https://sendgrid.com/docs/api-reference/Mail
that seems like an option to use but then the typing is not aligned with anything in the documentation. Typescript says you can't callsend
withMail
orMailJSON
.The current version forces me to set:
So it's valid Typescript even though we use template ids and values.
The text was updated successfully, but these errors were encountered: