scottcorgan / tiny-emitter

A tiny (less than 1k) event emitter library
MIT License
935 stars 67 forks source link

use interface in typescript definition #14

Closed edsilv closed 7 years ago

edsilv commented 7 years ago

Hi,

Your current typescript definition is causing the following error for me:

error TS2304: Cannot find name 'EventEmitter'

If I use an interface instead (a common approach), the error goes away.

edsilv commented 7 years ago

Actually, ignore this. I was trying to use TinyEmitter statically rather than inheriting from it.