• Creates an event processor that converts events incoming from OnEvent sender with the given converter function.

    Type Parameters

    • TEvent extends any[]

      Incoming events type.

    • TResult

      Outgoing events type.

    Parameters

    • convert: ((this, ...event) => TResult)

      A converter function that accepts incoming event as parameters and returns converted outgoing event.

        • (this, ...event): TResult
        • Parameters

          • this: void
          • Rest ...event: TEvent

          Returns TResult

    Returns ((this, input) => OnEvent<[TResult]>)

    New event mapper.

      • (this, input): OnEvent<[TResult]>
      • Parameters

        Returns OnEvent<[TResult]>

Generated using TypeDoc