You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) is not present in the type definition for Logger
What do you expect to happen instead?
I'd expect the rejections property to be defined as rejections: ExceptionHandler;rejections: RejectionHandler;.
Other information
I ran into this issue while trying to ensure winston's uncaught exceptions and unhandled rejection handlers were the first listeners for those events. Apparently Google cloud function's framework sets listeners for those that call process.exit()... I'd like my errors to be logged nicely, by winston, before the cloud function framework blows up. After writing some code to ensure wintson's listeners were first, tsc let me know that rejections wasn't defined on Logger!
The text was updated successfully, but these errors were encountered:
Please tell us about your environment:
What is the problem?
The rejections property (set at runtime
winston/lib/winston/logger.js
Line 111 in 2625f60
What do you expect to happen instead?
I'd expect the rejections property to be defined as rejections: ExceptionHandler;rejections: RejectionHandler;.
Other information
I ran into this issue while trying to ensure winston's uncaught exceptions and unhandled rejection handlers were the first listeners for those events. Apparently Google cloud function's framework sets listeners for those that call process.exit()... I'd like my errors to be logged nicely, by winston, before the cloud function framework blows up. After writing some code to ensure wintson's listeners were first, tsc let me know that rejections wasn't defined on Logger!
The text was updated successfully, but these errors were encountered: