puzpuzpuz / cls-rtracer

Request Tracer - CLS-based request id generation for Express, Fastify, Koa and Hapi, batteries included
MIT License
311 stars 24 forks source link

Add typings #4

Closed sweepies closed 5 years ago

sweepies commented 5 years ago

This seems to be the only library I can find that will allow me to get a request ID from the request object, which I need for pino-http (https://github.com/pinojs/pino-http/issues/63). So I'd love TypeScript support.

puzpuzpuz commented 5 years ago

Typings were added recently, but I forgot to include them into the npm artifact. Thanks for reaching out and creating this issue.

I've just published the new release (1.1.1) which includes typings.