From 268346a4e730ae2119ff30b042e5fe78862cb05b Mon Sep 17 00:00:00 2001 From: fratzinger <22286818+fratzinger@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:36:54 +0200 Subject: [PATCH] types: export all Transports from nodemailer/lib/... --- src/types.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/types.ts b/src/types.ts index fc5fbe8..93256bc 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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 SMTPTransport | SMTPTransport.Options | string