0

I have to use an object in all the functions the request in traveling to. I tried using: Object.assign(req, {obj});

But I am unable to retrieve it using req.obj. This gives error Property 'obj' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs>'.

I tried setting it in request headers, but when I am fetching that object in other function it is being converted to string | string[].

Can someone please help me with this.

anu
  • 1
  • 1

0 Answers0