@types/winston-mail
TypeScript icon, indicating that this package has built-in type declarations

1.5.5 • Public • Published

Installation

npm install --save @types/winston-mail

Summary

This package contains type definitions for winston-mail (https://github.com/wavded/winston-mail#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winston-mail.

index.d.ts

import * as winston from "winston";

export as namespace winstonMail;

export class Mail extends winston.Transport implements winston.TransportInstance {
    constructor(options: MailTransportOptions);
    name: string;
    to: string;
    from: string;
    level: string;
    unique: boolean;
    silent: boolean;
    filter: (obj: { level: string; message: string; meta: any }) => boolean;
    subject: string;
    html: boolean;
    log(level: any, msg: any, meta: any, callback: any): any;
}

export interface MailTransportOptions {
    name?: string | undefined;
    to: string;
    from?: string | undefined;
    level?: string | undefined;
    silent?: boolean | undefined;
    handleExceptions?: boolean | undefined;
    host?: string | undefined;
    port?: number | undefined;
    username?: string | undefined;
    password?: string | undefined;
    subject?: string | undefined;
    ssl?: boolean | { key: string; ca: string; cert: string } | undefined;
    tls?: boolean | { ciphers: string } | undefined;
    unique?: boolean | undefined;
    filter?: ((obj: { level: string; message: string; meta: any }) => boolean) | undefined;
    html?: boolean | undefined;
    timeout?: number | undefined;
    authentication?: string[] | undefined;
    formatter?:
        | ((
            obj: { level: string; message: string; meta: any },
        ) => string)
        | undefined;
}

declare module "winston" {
    interface Transports {
        Mail: winstonMail.Mail;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/winston

Credits

These definitions were written by Sorin Sandru.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/winston-mail

Weekly Downloads

175

Version

1.5.5

License

MIT

Unpacked Size

5.63 kB

Total Files

5

Last publish

Collaborators

  • types