Here is the structure of my module:
import * as express from 'express';
let router = express.Router();
router.post('/foo', function(req,res,next){
// ...
});
export = router;
However, I'm encountering the following error:
https://i.sstatic.net/VncS1.png
This issue is really frustrating - how can I resolve this warning/error?
My current versions are:
"express": "~4.14.1",
"@types/express": "^4.11.1",
and tsc -v
=> Version 2.7.2