lambda-api icon indicating copy to clipboard operation
lambda-api copied to clipboard

Fix typing for Response#type function.

Open codyfyi opened this issue 3 years ago • 0 comments

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 .

codyfyi avatar May 28 '21 23:05 codyfyi