mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
nodemailer: version 4.2 (#20754)
This commit is contained in:
2
types/nodemailer/index.d.ts
vendored
2
types/nodemailer/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Nodemailer 4.1
|
||||
// Type definitions for Nodemailer 4.2
|
||||
// Project: https://github.com/nodemailer/nodemailer
|
||||
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
|
||||
// Piotr Roszatycki <https://github.com/dex4er>
|
||||
|
||||
6
types/nodemailer/lib/smtp-connection.d.ts
vendored
6
types/nodemailer/lib/smtp-connection.d.ts
vendored
@@ -88,6 +88,12 @@ declare namespace SMTPConnection {
|
||||
rejectedErrors?: SMTPError[];
|
||||
/** the last response received from the server */
|
||||
response: string;
|
||||
/** how long was envelope prepared */
|
||||
envelopeTime: number;
|
||||
/** how long was send stream prepared */
|
||||
messageTime: number;
|
||||
/** how many bytes were streamed */
|
||||
messageSize: number;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
|
||||
@@ -1036,7 +1036,6 @@ namespace smtp_connection_test {
|
||||
if (err) throw err;
|
||||
connection.send({ from: 'a@example.com', to: 'b@example.net' }, 'message', (err, info) => {
|
||||
if (err) throw err;
|
||||
console.log(info);
|
||||
connection.reset(() => {
|
||||
if (err) throw err;
|
||||
connection.quit();
|
||||
|
||||
Reference in New Issue
Block a user