redeclare incorrect typsescript type in 3rd party library
问题 I'm using winston 3.0 with the @types/winston types. These types are not yet fully compatible, and I've come across an error in the types which I don't know how to correct. Here's my code. logger.ts export function middleware(): express.Handler { const transport = new winston.transports.Console({ json: true, colorize: true, stringify: getStringify() }); const loggerOptions: expressWinston.LoggerOptionsWithTransports = { transports: [transport], meta: true, msg: "HTTP {{req.method}} {{req.url}