tiny-typed-emitter
tiny-typed-emitter copied to clipboard
Fully type-checked NodeJS EventEmitter
First, thanks for this helpful package @binier ! I used to manually declare `onX(…)` events to enforce typed events until I found it. One thing I miss is a plain...
Hi, thanks for the great library :+1: I have a question about the [subclasses with different events](https://github.com/binier/tiny-typed-emitter#compatible-subclasses-with-different-events) example that you provided in the readme: The example works when calling the...
In my use case I am extending a library which has some static event names and some are dynamic generated. So I would like to have some events typed but...
Add a constructor to be able to pass optional parameters to the EventEmitter constructor (f.e. `{ captureRejections: true }`) The argument could be typed too but then you need to...