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
This is not typed, and its not even a function on the EventEmitter - is there a clean way to type this without reimplementing the promise-based once function?
Thanks for your work on this package!
The text was updated successfully, but these errors were encountered:
We might be able to "fix it" with a global type declaration extending the existing events interface, potentially under a new entry point in typed-emitter.
Haven't tried yet, though. Would be happy to give it a try if you were to prepare a PR.
PS: I do think it is a function on the EventEmitter, a static one, though.
Does typed-emitter have support for the "once" function of the "events" inbuilt package?
nodejs/node#26078
Used like this:
This is not typed, and its not even a function on the EventEmitter - is there a clean way to type this without reimplementing the promise-based
once
function?Thanks for your work on this package!
The text was updated successfully, but these errors were encountered: