-
Notifications
You must be signed in to change notification settings - Fork 897
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
Forbid using default log levels when useOnlyCustomLevels: true
#1998
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests. We use |
Yep, already submitted the PR #1999 :) |
#1999) * feat(types): forbid using default log fn when custom only used * test: move types test to tsd file * feat: allow overriding default levels --------- Co-authored-by: Matteo Collina <hello@matteocollina.com>
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. |
Currently, pino's TS declaration allows using default log levels when
useOnlyCustomLevels
istrue
. This following code will result in a runtime error:Expected behavior:
The text was updated successfully, but these errors were encountered: