Methods
addListener
addListener( type: string | symbol , listener: any ) : this
Parameters
type: string | symbol
listener: any
Returns this
emit
emit( type: string | symbol , ... args: any [] ) : boolean
Parameters
type: string | symbol
Rest ... args: any []
Returns boolean
eventNames
eventNames( ) : Array < string | symbol >
Returns Array < string | symbol >
getMaxListeners
getMaxListeners( ) : number
listenerCount
listenerCount( type: string | symbol ) : number
Parameters
Returns number
listeners
listeners( type: string | symbol ) : any []
off
off( event: string | symbol , listener: function ) : this
Parameters
event: string | symbol
listener: function
Returns this
on
on( type: string | symbol , listener: any ) : this
Parameters
type: string | symbol
listener: any
Returns this
once
once( type: string | symbol , listener: any ) : this
Parameters
type: string | symbol
listener: any
Returns this
prependListener
prependListener( event: string | symbol , listener: function ) : this
Parameters
event: string | symbol
listener: function
Returns this
prependOnceListener
prependOnceListener( event: string | symbol , listener: function ) : this
Parameters
event: string | symbol
listener: function
Returns this
rawListeners
rawListeners( event: string | symbol ) : Function []
Parameters
Returns Function []
removeAllListeners
removeAllListeners( type?: string | symbol ) : this
Parameters
Optional type: string | symbol
Returns this
removeListener
removeListener( type: string | symbol , listener: any ) : this
Parameters
type: string | symbol
listener: any
Returns this
setMaxListeners
setMaxListeners( n: number ) : this
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Proxies an internal EventEmitter (instead of extending EventEmitter) because ´decorate(injectable(), EventEmitter)´ causes errors when running tests in Jest