Fix type declaration for CustomEmailOptions

This commit is contained in:
Evan Broder
2023-03-09 13:22:02 -08:00
parent 755a1b5ab4
commit 97eb960cb6

View File

@@ -1,5 +1,5 @@
import { SendMailOptions } from 'nodemailer';
export namespace Email {
/**
* ExtraMailOptions is intentionally left empty here, but can be overridden in
@@ -11,7 +11,7 @@ export namespace Email {
interface ExtraMailOptions {}
type EmailOptions = { mailComposer: MailComposer } | (ExtraMailOptions & SendMailOptions)
interface CustomEmailOptions extends EmailOptions {
type CustomEmailOptions = EmailOptions & {
packageSettings?: unknown;
}