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
Pino 7 TypeScript #175
Comments
Would you like to send a Pull Request to address this issue? Remember to add unit tests. cc @kibertoad |
I don't have any experience adding types to a project. Would it be acceptable to copy the types from definitely typed and fix the errors? |
Hello 👋 are there any updates on this issue? Are types going to be included in |
A PR would be nice. |
Hi @mcollina, I opened a PR with the type definition. let me know what do you think. 🚀 |
Am I missing some required changes after the typings now being included in the package itself? The IncomingMessage declaration for a 'req' property is missing in types now, which means TS will complain about doing `req.log.info()' in Express handlers/middleware. This module declaration was included in the typings from @types/pino-http, but does not exist in the typings included in pino-http itself now:
|
@oddeirik Would you like to send a PR to fix this? |
#184 I think this one "removed" some PinoHttp.Options from types. They aren't being merged properly. I am using NestJS Pino Logger and using the LoggerModule.forRoot({
pinoHttp: [
{
redact: [
'req.headers.authorization',
'req.headers.cookie',
'req.headers["x-csrf-token"]'
]
}
]
}), It was yelling at me once I upgraded to the latest version. Moving back to |
Yeah. I'm working on a fix for this in nestjs-pino, but first I need #188 merge into master |
@umarov I opened a PR in nestjs-pino to fix the problem. |
This was done long ago. Please open a fresh issuez |
Now pino 7 is including TypeScript types, would it make sense to include TypeScript types in this package as well? The types in DefinitelyTyped for this package don't work with the pino 7 types.
The text was updated successfully, but these errors were encountered: