It is valid to chain response.type('application/xml').status(200).send(xml) because the type function returns an instance of this. This change correct the index.d.ts typing description from incorrectly returning void to correctly returning this as apparent from lib/response.js .
It is valid to chain
response.type('application/xml').status(200).send(xml)
because thetype
function returns an instance of this. This change correct theindex.d.ts
typing description from incorrectly returning void to correctly returning this as apparent fromlib/response.js
.