mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
nodemailer: JSONTransport.Options has skipEncoding
This commit is contained in:
+1
@@ -15,6 +15,7 @@ declare namespace JSONTransport {
|
||||
|
||||
interface Options extends MailOptions, TransportOptions {
|
||||
jsonTransport: true;
|
||||
skipEncoding?: boolean;
|
||||
}
|
||||
|
||||
interface SentMessageInfo {
|
||||
|
||||
@@ -832,7 +832,8 @@ function stream_buffer_unix_newlines_test() {
|
||||
|
||||
function json_test() {
|
||||
const transporter = nodemailer.createTransport({
|
||||
jsonTransport: true
|
||||
jsonTransport: true,
|
||||
skipEncoding: true
|
||||
});
|
||||
transporter.sendMail({
|
||||
from: 'sender@example.com',
|
||||
|
||||
Reference in New Issue
Block a user