Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Event

Index

Functions

  • addMaxListeners(event: Event<unknown>, add: number): number
  • getMaxListeners(event: Event<unknown>): number
  • map<I, O>(event: Event<I>, mapFunc: ((i: I) => O)): Event<O>
  • Given an event and a map function, returns another event which maps each element through the mapping function.

    Type Parameters

    • I

    • O

    Parameters

    • event: Event<I>
    • mapFunc: ((i: I) => O)
        • (i: I): O
        • Parameters

          • i: I

          Returns O

    Returns Event<O>

  • setMaxListeners<N>(event: Event<unknown>, maxListeners: N): N