Skip to content

Commit

Permalink
Add type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed May 6, 2020
1 parent 09e1495 commit f5ced3f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit f5ced3f

Please sign in to comment.