Add indexer to option constructors in 'winston'.

This commit is contained in:
Daniel Rosenwasser
2015-08-26 15:26:57 -07:00
parent fa8d9683f3
commit 5c69bdeb45
+10
View File
@@ -98,6 +98,11 @@ declare module "winston" {
* @type {(boolean|(err: Error) => void)}
*/
exitOnError?: any;
// TODO: Need to make instances specific,
// and need to get options for each instance.
// Unfortunately, the documentation is unhelpful.
[optionName: string]: any;
}
export interface TransportStatic {
@@ -141,6 +146,11 @@ declare module "winston" {
raw?: boolean;
name?: string;
handleExceptions?: boolean;
// TODO: Need to make instances specific,
// and need to get options for each instance.
// Unfortunately, the documentation is unhelpful.
[optionName: string]: any;
}
export interface QueryOptions {