-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make generic options in params available #2075
base: master
Are you sure you want to change the base?
Conversation
Thank you for this PR, the only one thing that disturbs me is that this feature was introduced in [email protected], but in current package-json we support pino-http since v6.4.0. So, I believe it could be an error for users with outdated versions, to check that we need to provide pino-http versions as well for the CI tests here and here, and after we can decide if this is a breaking change or not, and based on that we will release this feature in a new major or fix version |
Thanks, will get back to this soon |
@iamolegga just let me know if I can do something else or check something. I am happy to finish this PR or close it if it doesn't work at this particular moment. I understand that you are busy, and I am happy to do all the necessary checks, test hypotesis, etc. Just guide me a little bit please :) |
@oitan thanks, just give me a couple of days, I'll check everything on my own and we will merge it |
when trying to use express
Request
andResponse
forpinoHttp
options, TypeScript argues that they should be of typeIncomingMessage
andServerResponse
(the default ones). This make generics forpinoHttp
available again inside ofParams
type.Code:
TS Error:
PRs solution allow to which resolves the issue: