Methods
addListener
- addListener(event: EventType, handler: Handler<any>): EventEmitter
-
Parameters
-
event: EventType
-
handler: Handler<any>
emit
- emit(event: EventType, eventData?: any): boolean
-
Parameters
-
event: EventType
-
Optional eventData: any
Returns boolean
listenerCount
- listenerCount(event: string): number
-
Parameters
Returns number
off
-
Parameters
-
event: EventType
-
handler: Handler<any>
on
-
Parameters
-
event: EventType
-
handler: Handler<any>
once
-
Parameters
-
event: EventType
-
handler: Handler<any>
removeAllListeners
-
Parameters
-
Optional event: string | symbol
removeListener
- removeListener(event: EventType, handler: Handler<any>): EventEmitter
-
Parameters
-
event: EventType
-
handler: Handler<any>