denolibs / event_emitter

A NodeJS-like EventEmitter for Deno in Typescript.
MIT License
12 stars 3 forks source link

Methods return EventEmitter type instead of this #7

Closed realJoshByrnes closed 5 years ago

realJoshByrnes commented 5 years ago

There's an issue I overlooked when initially authoring this. Currently, the return type is EventEmitter.

This works fine in most cases, but when extending EventEmitter, the type should be this, otherwise chained calls may fail in TypeScript.

A fix should be implemented shortly.