Skip to content
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

fix: TypeScript for CustomLevels on parent pino instance #318

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

GeoffreyEmerson
Copy link
Contributor

CustomLevels from pino parent instance should be passed through TypeScript variables.

Fixes #317

naseemkullah added a commit to naseemkullah/pino-http that referenced this pull request Dec 22, 2023
pass in logger's generic based on value of customLevels and/or logger.customLevels option

TS does not like what I did here so I added a ts-expect-error to silence it
but it does work as expected, this is covered in the tests

fixes pinojs#317 and supersedes pinojs#318 if merged
naseemkullah added a commit to naseemkullah/pino-http that referenced this pull request Dec 22, 2023
pass in logger's generic based on value of customLevels and/or logger.customLevels option

TS does not like what I did here so I added a ts-expect-error to silence it
but it does work as expected, this is covered in the tests

fixes pinojs#317 and supersedes pinojs#318 if merged
naseemkullah added a commit to naseemkullah/pino-http that referenced this pull request Dec 24, 2023
pass in logger's generic based on value of customLevels and/or logger.customLevels option

fixes pinojs#317 and supersedes pinojs#318 if merged
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 3f605c6 into pinojs:master Dec 27, 2023
5 checks passed
@GeoffreyEmerson GeoffreyEmerson deleted the issue-317-fix branch December 27, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript error when using customLevels on pino parent instance
2 participants