-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Type for mixinFn doesn't match docs - mixin doesn't actually get logger
parameter
#1787
Comments
I think the test are the best form of documentation: Lines 164 to 178 in 309cdfb
Could you check the behavior and make sure docs and types are correct? |
Just as a heads up, my team has worked around this issue for now and I don't expect to have time to check and update the docs. |
I encountered the same problem.
|
When can we expect this fix to be released? What would be the best workaround for now? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The docs for the
mixin
option state that it has 3 arguments: https://getpino.io/#/docs/api?id=mixin-functionThe first parameter is the value mergeObject or an empty object. The second parameter is the log level number. The third parameter is the logger or child logger itself
However, the type declaration only has two arguments:
pino/pino.d.ts
Line 31 in 91a3505
Which of these versions of reality is correct?
Here's a screenshot of the resultant type error in VS code:
Pino version: 8.15.0
The text was updated successfully, but these errors were encountered: