nodemailer: Mail.use returns this

This commit is contained in:
Piotr Roszatycki
2018-06-19 14:58:02 +02:00
parent 085e63ecf0
commit 2598e04e13
+1 -1
View File
@@ -165,7 +165,7 @@ declare class Mail extends EventEmitter {
verify(callback: (err: Error | null, success: true) => void): void;
verify(): Promise<true>;
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;