mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Added a new interface Options which includes AuthOptions, because it's
no longer compatibel with version ^1.3.5.
This commit is contained in:
+4
-1
@@ -6,12 +6,15 @@
|
||||
import * as nodemailer from 'nodemailer';
|
||||
|
||||
declare namespace mailgunTransport {
|
||||
interface Options {
|
||||
auth: AuthOptions
|
||||
}
|
||||
interface AuthOptions {
|
||||
api_key: string;
|
||||
domain?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare function mailgunTransport(options: mailgunTransport.AuthOptions): nodemailer.Transport;
|
||||
declare function mailgunTransport(options: mailgunTransport.Options): nodemailer.Transport;
|
||||
|
||||
export = mailgunTransport;
|
||||
|
||||
Reference in New Issue
Block a user