diff --git a/index.d.ts b/index.d.ts index 4f88d68bc..3a5e071cf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -56,17 +56,19 @@ declare namespace winston { [optionName: string]: any; } - interface LogMethod { + interface LogMethod { (level: string, message: string, callback: LogCallback): Logger; (level: string, message: string, meta: any, callback: LogCallback): Logger; (level: string, message: string, ...meta: any[]): Logger; (entry: LogEntry): Logger; + (level: string, message: any): Logger; } interface LeveledLogMethod { (message: string, callback: LogCallback): Logger; (message: string, meta: any, callback: LogCallback): Logger; (message: string, ...meta: any[]): Logger; + (message: any): Logger; (infoObject: object): Logger; }