• Converts a plain event receiver registration function to OnEvent sender.

    Type Parameters

    • TEvent extends any[]

      An event type. This is a list of event receiver parameter types.

    Parameters

    • register: ((this, receiver) => void)

      Generic event receiver registration function. It will be called on each receiver registration, unless the receiver's event supply is cut off already.

        • (this, receiver): void
        • Parameters

          • this: void
          • receiver: Generic<TEvent>

          Returns void

    Returns OnEvent<TEvent>

    An OnEvent sender registering event receivers with the given register function.

Generated using TypeDoc