I have a function which takes as arguments Express Request and Response objects.
function doStuff(req, res) {
// do something
}
How to use jsdoc to document the types of req
and res
?
EDIT: The reasons I feel this is not a duplicate is that I am asking how to specifically use the Express classes as the types, where as the other questions suggest documenting it as Object
and then documenting the properties