15 lines
520 B
TypeScript
15 lines
520 B
TypeScript
declare module "nodemailer" {
|
|
export type TransportOptions = Record<string, any>;
|
|
export interface Transporter {
|
|
sendMail(options: Record<string, any>): Promise<any>;
|
|
}
|
|
export function createTransport(options: TransportOptions): Transporter;
|
|
const nodemailer: { createTransport: typeof createTransport };
|
|
export default nodemailer;
|
|
}
|
|
|
|
declare module "nodemailer/lib/smtp-transport" {
|
|
export interface Options extends Record<string, any> {}
|
|
const SMTPTransport: any;
|
|
export default SMTPTransport;
|
|
}
|