-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add type declarations #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests for those APIs? See how pino does them
I added a types test, but I have not added any new API, just documented what already exists. So I'm not sure what would have made the test coverage decrease to 0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Great idea, just one comment from my side - should the type tests maybe run in CI as well? I see you added an npm script already, but so far looks like it needs to be run manually, which is easily forgotten :) |
@lauraseidler Done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - sorry for the delay, I was off for two weeks :)
Not sure what's going on with the coverage there - let's see if the problem persists when the PR is merged, if yes I'll look into it.
Should we release a new minor version for this?
Please, it would be nice to see this released. The latest release of pino made it nigh impossible to use the existing typings of hapi-pino. |
@lauraseidler any update on a release? |
@types/hapi-pino is not compatible with pino's type declarations: https://github.com/pinojs/pino/blob/38ff645e7fd1a62ccffaa710070a03ba71495f1e/pino.d.ts
The goal of this PR is to make @types/hapi-pino unnecessary.