From 5c69bdeb4541a496f65171559a5de025e6a126b3 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 26 Aug 2015 15:26:57 -0700 Subject: [PATCH] Add indexer to option constructors in 'winston'. --- winston/winston.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/winston/winston.d.ts b/winston/winston.d.ts index 954e3358b..c816a533a 100644 --- a/winston/winston.d.ts +++ b/winston/winston.d.ts @@ -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 {