1
I’m using the consign to automatically include routes in an application built with Express. In a given file I have the route:
module.exports = app => {
app.post('/users', (req, res) => {
//...
})
}
But this approach, at least for me, resulted in the loss of Javascript Intellisense autocomplete in VS Code.
It would be possible using Javascript documentation tags to instruct the IDE/Editor, in this case VS Code to understand that app is an object of the Express, leading the same to "reactivate" the Intellisense? How could this be done?