mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
nodemailer: Mail.use returns this
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user