Skip to content

IEvent.subscribe

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / IEvent<TSubject, TEventArgs> / subscribe method

Subscribes the given eventHandler to the event.

subscribe<TEventHandler extends IEventHandler<TSubject, TEventArgs>>(
  eventHandler: TEventHandler
): void

Source reference: src/events/IEvent.ts:13.

Generic Parameters

  • TEventHandler

    Type constraints: IEventHandler<TSubject, TEventArgs>.

Parameters

  • eventHandler: TEventHandler
    An event handler that gets notified when the event is raised.
Clone this wiki locally