Here are the type definitions for Winston:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/winston/index.d.ts
, const, level , const, :
declare const winston: winston.Winston;
export = winston;
, , configure ( , logger import Winston:
logger.configure({
level: 'verbose',
...
})
( , configure), LoggerInstance, .
, Error, string. Winston.info :
info: LeveledLogMethod;
LeveledLogMethod:
interface LeveledLogMethod {
(msg: string, callback: LogCallback): LoggerInstance;
(msg: string, meta: any, callback: LogCallback): LoggerInstance;
(msg: string, ...meta: any[]): LoggerInstance;
}