typings: add third-party typings for logdna-winston

This commit is contained in:
liushuyu 2023-06-26 17:36:30 -06:00
parent 4cfed50b95
commit 43a2373f85
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

27
typings/logdna-winston/index.d.ts vendored Normal file
View File

@ -0,0 +1,27 @@
// Taken from https://github.com/efugulin/logdna-winston/blob/master/index.d.ts
import { ConstructorOptions } from 'logdna';
import Transport from 'winston-transport';
declare class LogDNATransport extends Transport {
constructor(options: LogDNATransport.TransportOptions);
}
declare namespace LogDNATransport {
interface TransportOptions
extends Transport.TransportStreamOptions,
ConstructorOptions {
/** The LogDNA API key. */
key: string;
/** The name of this transport (default: "LogDNA"). */
name?: string;
/** Level of messages that this transport should log (default: "debug"). */
level?: string;
/**
* Allow meta objects to be passed with each line (default: false).
* See logger ConstructorOptions for more information.
*/
index_meta?: boolean;
}
}
export = LogDNATransport;