-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MailDataRequired requires MailContent? #1057
Comments
BTW: 6.5.0 doesn't seem to have this weird |
watching this one too. updated my package and now not sure about this |
@childish-sambino this is still an issue on
That is making
|
@rodrigomf24 Does |
@childish-sambino no just a |
|
Is this fix released? |
I just got version 7.0.0 and I still see this error
|
If this has changed in 7.0.0, where is latest documentation for the send api please? Can't find much here. @childish-sambino Thanks. |
Yes, this was released in 6.5.5 |
@childish-sambino What do you think about exporting |
@isaachinman I've no issue with that. If you want to submit a PR I can review it. |
@childish-sambino I had a look around, and am unfamiliar with the module approach of Happy to help if you can point me in the right direction. |
Think this line can just be updated: https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/mail/src/mail.d.ts#L37 Like this maybe:
|
No, that won't work as |
Then just |
No, what I am saying is that literally adds a I haven't seen any other packages managing types with this sort of module approach, so I can't really offer you any suggestions. You need a way of supporting named exports. Normally I'd expect to see something like this: export default mail
export { MailDataRequired } |
@isaachinman Think this (hack) should fix it: #1102 |
still having the same issue, and proper workaround? |
Still same issue with version 7.6.0 |
Not perfect, but it allows you to go past the error: // @ts-expect-error: https://github.com/sendgrid/sendgrid-nodejs/issues/1057
await sgMail.sendMultiple(msg); |
Was also having this issue with 7.6.0. Had to force compiler to ignore it. |
Also having the same issue with version For reference I was digging around and I see:
Where
but conflicts with
Can this be resolved? I'd rather not have to ignore it... |
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. |
Hello, any workaround for this ? thanks ! |
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
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: