From f5ced3fc5ca94462f8ec81b456953c3daa135eec Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Tue, 5 May 2020 21:26:43 -0400 Subject: [PATCH] Add type definition --- index.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..a352d56 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,17 @@ +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. */ + name?: string; + } +} + +export = LogDNATransport; \ No newline at end of file