express-response-formatter icon indicating copy to clipboard operation
express-response-formatter copied to clipboard

How can I make express' 'res' object aware of the formatter property to satisfy the TypeScript compiler?

Open Brysonmk1984 opened this issue 3 years ago • 0 comments

Hi, I've loved working with this package for my node app. Recently I began migrating my JS to TypeScript, but I get the following TS error: Property 'formatter' does not exist on type 'Response<any, Record<string, any>, number>'.

Any idea on this? Thanks for making this package btw!

Brysonmk1984 avatar Feb 27 '22 00:02 Brysonmk1984