0.1.2 • Published 9 years ago
eventemitter-decorator v0.1.2
EventEmitterDecorator
USAGE
import EventEmitter from 'eventemitter-decorator';
@EventEmitter
class Foo {}
const foo = new Foo();
foo.on('hello', (name) => console.log(`hello, ${name}!!`));
foo.emit('hello', 'world'); // 'hello, world!!'