-
Notifications
You must be signed in to change notification settings - Fork 782
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
export type MailDataRequired generate errors in arguments (Typescript) #1166
Comments
Hi @jaun-rg I was able to reproduce this bug. 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 ! |
Hi, |
Hi, is there any progress on this? Even the type definitions file I tried to install @types/sendgrid and it installed an empty package:
I'm unable to import any types from the current package. |
Same problem here. I cannot work out how to get typings for the "msg" object in sgMail.send(msg). I've looked absolutely everywhere and the solution posted elsewhere which says to use import * as SendGrid from '@sendgrid/mail' soesn't work because the Sendgrid object doesn't export a member called MailService. |
@jon64digital try:
Also, fwiw:
|
Hi, I have an issue using the MailDataRequired type. |
I had the same problem, where a // need @sendgrid/mail and @sendgrid/helpers installed
import sendgrid from '@sendgrid/mail';
import { MailData } from '@sendgrid/helpers/classes/mail';
// this is simplified, but there is no `content` node.
const payload: MailData = this.getPayload();
await sendgrid.send(<any>payload); The function should take a |
This annoying bug keeps going to Typescript coders 😞 |
When use send function in typescript, this generate a error Argument for types (specifically with content resolution)
Issue Summary
Steps to Reproduce
Code Snippet
Exception/Log
Additional log in debug:
Technical details:
The text was updated successfully, but these errors were encountered: