We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21317ff commit 1d55982Copy full SHA for 1d55982
src/types/transport.ts
@@ -1,6 +1,6 @@
1
import NodemailerMail = require("nodemailer/lib/mailer");
2
3
-import { Transporter } from "nodemailer";
+import { Transport, Transporter } from "nodemailer";
4
import {
5
SendResponse,
6
SendError,
@@ -51,3 +51,5 @@ export interface MailtrapTransporter extends Transporter<MailtrapResponse> {
51
mailOptions: MailtrapMailOptions | MailtrapMailOptionsSandbox
52
): Promise<MailtrapResponse>;
53
}
54
+
55
+export type MailMessage<T> = Parameters<Transport<T>["send"]>[0];
0 commit comments