Extends

Methods

M addListener(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M emit(event: string, ...args: any) boolean

Parameters:
Name Type Argument
event string
...args any <repeatable>
Inherited From:
Returns: { boolean }

M listenerCount(emitter: events.EventEmitter, event: string) number

Parameters:
Name Type
emitter events.EventEmitter
event string
Inherited From:
Returns: { number }

M listeners(event: string) function()[]

Parameters:
Name Type
event string
Inherited From:
Returns: { Array.<function()> }

M on(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M once(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M removeAllListeners(event: string) events.EventEmitter

Parameters:
Name Type Argument
event string <optional>
Inherited From:
Returns: { events.EventEmitter }

M removeListener(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M setMaxListeners(n: number) void

Parameters:
Name Type
n number
Inherited From:
Returns: { void }