rejectionHandlers type definition does not exist
See original GitHub issuePlease tell us about your environment:
winston
version?-
winston@2
-
winston@3
-
- Language ( TypeScript )
What is the problem?
In the index.d.ts
type defeintions of RejectionHandler does not exist. Neither does the rejectionHandler option in LoggerOptions
https://github.com/winstonjs/winston/blob/9354721af36af51b127f489a366d5d8602a37049/index.d.ts#L77
What do you expect to happen instead?
Since this is an actual feature of this library (see below), expectation is it is typed and available to typescript users https://github.com/winstonjs/winston/blob/9354721af36af51b127f489a366d5d8602a37049/lib/winston.js#L58
Issue Analytics
- State:
- Created 3 years ago
- Reactions:18
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Rejections - spray - Read the Docs
A rejection encapsulates a specific reason why a Route was not able to handle a request. It is modeled as an object of...
Read more >Window: unhandledrejection event - Web APIs | MDN
The unhandledrejection event is sent to the global scope of a script when a JavaScript Promise that has no rejection handler is rejected; ......
Read more >A Complete Guide to Winston Logging in Node.js - Better Stack
Winston is the most popular logging library for Node.js. It aims to make logging more flexible and extensible by decoupling different aspects such...
Read more >Events | Node.js v19.3.0 Documentation
If an EventEmitter does not have at least one listener registered for the ... The EventEmitter class is defined and exposed by the...
Read more >Rejections - Akka Documentation
If there are more rejections all of them will be picked up and collected. ... As you can see from its definition above...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue still exists
I don’t know exactly why this issue still exists, but I opened a pull request about it. My PR: https://github.com/winstonjs/winston/pull/2021 Adds rejectionHandlers and handleRejections fields
There is another PR about that: https://github.com/winstonjs/winston/pull/1847 The 1847 PR doesn’t add the rejectionHandlers field and it’s from a year ago.