Functions
None
Parameters
listener: ((e: any) => any)
Optional thisArgs: any
addMaxListeners
- addMaxListeners(event: Event<unknown>, add: number): number
Parameters
event: Event<unknown>
add: number
Returns number
getMaxListeners
- getMaxListeners(event: Event<unknown>): number
map
- map<I, O>(event: Event<I>, mapFunc: ((i: I) => O)): Event<O>
Type Parameters
Parameters
Returns Event<O>
setMaxListeners
- setMaxListeners<N>(event: Event<unknown>, maxListeners: N): N
Type Parameters
Parameters
event: Event<unknown>
maxListeners: N
Returns N
Given an event and a
map
function, returns another event which maps each element through the mapping function.