app.use() marked as "Argument types do not match parameters"
const express = require('express');
const app = express();
function logger(req, res, next) { ... }
app.use(logger); // #
Webstorm marks line '#' as "Argument types do not match parameters".
I've already installed express and @types/express modules but nothing has changed.
What is the problem?
Please sign in to leave a comment.
Please follow https://youtrack.jetbrains.com/issue/WEB-52585 for updates (see https://intellij-support.jetbrains.com/hc/en-us/articles/206827497-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack).