• Builds an AfterEvent keeper of events sent by the given sender.

    The event generated by fallback will be sent to the registered first receiver, unless register function sends one.

    Type Parameters

    • TEvent extends any[]

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

    Parameters

    • sender: EventSender<TEvent>

      An event sender.

    • Optional fallback: ((this) => TEvent)

      A function creating fallback event. When omitted, the initial event is expected to be sent by register function. A receiver registration would lead to an error otherwise.

        • (this): TEvent
        • Parameters

          • this: void

          Returns TEvent

    Returns AfterEvent<TEvent>

    An AfterEvent keeper of events either originated from the given sender, or initial one.

Generated using TypeDoc