1.0.7 • Published 6 months ago

@types/datadog-winston v1.0.7

Weekly downloads
2,037
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/datadog-winston

Summary

This package contains type definitions for datadog-winston (https://github.com/itsfadnis/datadog-winston).

Details

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

index.d.ts

// Type definitions for datadog-winston 1.0
// Project: https://github.com/itsfadnis/datadog-winston
// Definitions by: Matt Hintzke <https://github.com/mhintzke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

import TransportStream = require("winston-transport");

declare namespace DatadogWinston {
    interface DatadogTransportOptions extends TransportStream.TransportStreamOptions {
        apiKey: string;
        hostname?: string | undefined;
        service?: string | undefined;
        ddsource?: string | undefined;
        ddtags?: string | undefined;
        intakeRegion?: string | undefined;
    }
}

declare class DatadogWinston extends TransportStream {
    constructor(options: DatadogWinston.DatadogTransportOptions);

    log?(info: any, next: () => void): void;
}

export = DatadogWinston;

Additional Details

Credits

These definitions were written by Matt Hintzke.