Skip to content

Commit

Permalink
types: export all Transports from nodemailer/lib/...
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Jun 2, 2023
1 parent 99ebb50 commit 268346a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ import type JSONTransport from 'nodemailer/lib/json-transport';
import type SESTransport from 'nodemailer/lib/ses-transport';
import { Transport as _Transport, Transporter, TransportOptions } from 'nodemailer';

export {
SMTPTransport,
SMTPPool,
SendmailTransport,
StreamTransport,
JSONTransport,
SESTransport
}

export type AnyTransport = SMTPTransport | SMTPTransport.Options | string | SMTPPool | SMTPPool.Options | SendmailTransport | SendmailTransport.Options | StreamTransport | StreamTransport.Options | JSONTransport | JSONTransport.Options | SESTransport | SESTransport.Options | _Transport | TransportOptions;
export type MailerInferCreateTransport<T extends AnyTransport> =
T extends SMTPTransport | SMTPTransport.Options | string
Expand Down

0 comments on commit 268346a

Please sign in to comment.