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

    Type Parameters

    • TEvent extends any[]

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

    Parameters

    Returns AfterEvent<TEvent>

    An AfterEvent keeper of events originated from the given keeper.

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

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

    This is a synonym of afterSent, unless supplier is an EventKeeper.

    Type Parameters

    • TEvent extends any[]

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

    Parameters

    • supplier: EventSupplier<TEvent>

      An event supplier.

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

      A function creating fallback event. When omitted, the initial event is expected to be sent by supplier. 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 supplier, or initial one.

Generated using TypeDoc