chirashi-event-emitter

Simplest event emitter

View the Project on GitHub

Table of Contents

TEventEmitter

lib/EventEmitter.js:6-10

The TEventEmitter type.

Type: {on: function (event: string, callback: Function): function (): void, off: function (event: string, callback: Function): void, emit: function (event: string): void}

Properties

EventEmitter

lib/EventEmitter.js:15-56

The TEventEmitter factory function.

Returns TEventEmitter