I get TS errors for req.user ("Property 'user' does not exist on type 'IncomingMessage'.ts(2339)") and res.status ("Property 'status' does not exist on type 'ServerResponse'.ts(2339)"). Is there a guide on how to merge declarations to add custom properties? Thanks.
I get TS errors for req.user ("Property 'user' does not exist on type 'IncomingMessage'.ts(2339)") and res.status ("Property 'status' does not exist on type 'ServerResponse'.ts(2339)"). Is there a guide on how to merge declarations to add custom properties? Thanks.