Skip to content

IEventHandler

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

An event handler used to subscribe to events. Similar to an EventHandler delegate in .NET.

interface IEventHandler<TSubject, TEventArgs = void>

Source reference: src/events/IEventHandler.ts:6.

Generic Parameters

  • TSubject - The type of object that raises the event.

  • TEventArgs - Optional, the type of the event context containing additional information about the event.

    Default value: void.

Methods

  • handle - The method that handles the event.
Clone this wiki locally