All files mail.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171x                   1x            
import SGMail from "@sendgrid/helpers/classes/mail";
import { Personalization } from "@sendgrid/helpers/classes";
import { EmailData } from "@sendgrid/helpers/classes/email-address";
import { MailContent } from "@sendgrid/helpers/classes/mail";
 
/**
 * The sendgrid typing for this class does not provide
 * any of the public props that the class implements.
 * Hence, this little class extension to expose the ones we need.
 */
export default class Mail extends SGMail {
  content: MailContent[];
  from: EmailData;
  personalizations: Personalization[];
  substitutionWrappers: [string, string];
}