pino-http icon indicating copy to clipboard operation
pino-http copied to clipboard

Pass response object to request ID generator

Open sweepies opened this issue 5 years ago • 1 comments

With TypeScript and Koa, I have no good way to add a property to the request object. This means I cannot use the same ID I'm sending to the user for the generator.

sweepies avatar May 05 '19 16:05 sweepies

I don’t really understand the issue. In typescript, you can extend the types and add your own properties if you need to.

mcollina avatar May 11 '19 13:05 mcollina