Morglod/tsee

Missing EventEmitter API

ibc opened this issue · 2 comments

ibc commented

For instance, the "newListener" event is not implemented. There are others.

Just wondering: is it really posible that those 90 lines do the same as those 647 lines?

tsee has simple implementation for simple usage. If you really want all features, you should use asTypedEventEmitter function or just type casting.
I never saw advanced usage of EventEmitters, simple implementation is enough almost everywhere.

Also there is no tests currently in tsee.

What project your working on, than you need newListener event? 😮

ibc commented

The thing is that I cannot use asTypedEventEmitter() into my class definition.

I'm not using newListener in any project right now, but I needed it in the past.