• Creates an event processor that sends the values of incoming events, and does not share the outgoing events supply.

    Type Parameters

    • TEvent extends any[]

      Incoming event type.

    • TValue

      Event value type.

    Parameters

    • valueOf: ((this, ...event) => undefined | null | false | TValue)

      Event value detector function. Accepts incoming event as parameters and returns either its value, or false/null/undefined to ignore it.

        • (this, ...event): undefined | null | false | TValue
        • Parameters

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

          Returns undefined | null | false | TValue

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

    New event processor.

Generated using TypeDoc