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
Consider adding stream metadata types to pino.d.ts #1557
Comments
Note that I hope to remove all of those in a upcoming major. Those were a hack to support the old pretty print option. |
The builtin |
Ah. I forgot about that one. I guess they are here to stay for one more cycle then. Would you like to send a PR to add the types? |
* Add DestinationStreamMetadata type to pino.d.ts Fixes #1557 * Use symbols.needsMetadataGsym instead * Improve DestinationStreamWithMetadata type * Fix tsd weirdness
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. |
e.g.
Though using discriminated union type narrowing might make for a better type:
The text was updated successfully, but these errors were encountered: