Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace create

Callable

  • create<Event, ProvidedListener, TransformedListener>(target: EventTarget<Event, TransformedListener>, transform: ListenerTransformer<Event, ProvidedListener, TransformedListener>): EvtTrgPrx<Event, ProvidedListener>
  • Create an event proxy

    Type parameters

    • Event = AnyEvent

    • ProvidedListener = AnyListener

    • TransformedListener = ProvidedListener

    Parameters

    • target: EventTarget<Event, TransformedListener>

      An EventTarget - object that has addListener() and removeListener() methods

    • transform: ListenerTransformer<Event, ProvidedListener, TransformedListener>

      A function that takes an event name and a listener then returns a listener

    Returns EvtTrgPrx<Event, ProvidedListener>

    An EventTarget that acts like a proxy of target

Index

Type aliases

Variables

Type aliases

EvtTrgPrx

EvtTrgPrx<Event, Listener>: EventTargetProxy<Event, Listener>

Type parameters

  • Event

  • Listener

Variables

Const EvtTrgPrx

EvtTrgPrx: EventTargetProxy = EventTargetProxy

Generated using TypeDoc