Open leumasme opened 2 years ago
Hey @leumasme.
You need to use a type MyEvents =
, not interface MyEvents
. See #27.
The readme has been updated, a new release with updated jsdoc has not yet been published yet, though.
Should we add a prominent note to the readme?
Hey! I just installed typed-emitter v2.0.0 and am not sure how to use it now. The code that worked previously and that still follows what is in the readme,
now errors on
EventEmitter as new () => TypedEmitter<MyEvents>
Downgrading to typed-emitter@^1 and it works again, so how do i get this to work on v2? Thanks!