1.5.5 • Published 6 months ago

@types/winston-mail v1.5.5

Weekly downloads
216
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for winston-mail 1.5
// Project: https://github.com/wavded/winston-mail#readme
// Definitions by: Sorin Sandru <https://github.com/idono87>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Fri, 02 Jul 2021 18:05:41 GMT
  • Dependencies: @types/winston
  • Global values: winstonMail

Credits

These definitions were written by Sorin Sandru.

1.5.5

6 months ago

1.5.4

7 months ago

1.5.3

8 months ago

1.5.2

3 years ago

1.5.1

6 years ago

1.5.0

6 years ago