From 2598e04e138c9a57fc0f46d7d2eef7ccc82e15cc Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Tue, 19 Jun 2018 14:58:02 +0200 Subject: [PATCH] nodemailer: Mail.use returns this --- types/nodemailer/lib/mailer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nodemailer/lib/mailer/index.d.ts b/types/nodemailer/lib/mailer/index.d.ts index f9d36d7efb..00cf40839c 100644 --- a/types/nodemailer/lib/mailer/index.d.ts +++ b/types/nodemailer/lib/mailer/index.d.ts @@ -165,7 +165,7 @@ declare class Mail extends EventEmitter { verify(callback: (err: Error | null, success: true) => void): void; verify(): Promise; - use(step: string, plugin: Mail.PluginFunction): void; // TODO Plugin? + use(step: string, plugin: Mail.PluginFunction): this; /** Sends an email using the preselected transport object */ sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: SentMessageInfo) => void): void;