🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@types/winston-mail

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/winston-mail

TypeScript definitions for winston-mail

ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
1.5.5
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts