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.