File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @nestjs-modules/mailer ' : patch
3+ ---
4+
5+ Allow all transport types for additional transports and addTransporter method.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export interface MailerOptions {
1212 defaults ?: Options ;
1313 transport ?: TransportType ;
1414 transports ?: {
15- [ name : string ] : SMTPTransport | SMTPTransport . Options | string ;
15+ [ name : string ] : TransportType ;
1616 } ;
1717 template ?: {
1818 dir ?: string ;
Original file line number Diff line number Diff line change 11import { SentMessageInfo } from 'nodemailer' ;
2- import * as smtpTransport from 'nodemailer/lib/smtp-transport' ;
3- import { MailerOptions } from './interfaces/mailer-options.interface' ;
2+ import { MailerOptions , TransportType } from './interfaces/mailer-options.interface' ;
43import { MailerTransportFactory as IMailerTransportFactory } from './interfaces/mailer-transport-factory.interface' ;
54import { ISendMailOptions } from './interfaces/send-mail-options.interface' ;
65export declare class MailerService {
@@ -18,5 +17,5 @@ export declare class MailerService {
1817 private verifyTransporter ;
1918 verifyAllTransporters ( ) : Promise < boolean > ;
2019 sendMail ( sendMailOptions : ISendMailOptions ) : Promise < SentMessageInfo > ;
21- addTransporter ( transporterName : string , config : string | smtpTransport | smtpTransport . Options ) : string ;
20+ addTransporter ( transporterName : string , config : TransportType ) : string ;
2221}
You can’t perform that action at this time.
0 commit comments