InterfaceIEvent<T>

Generic type for onSomeEvent, which is a function itself.

Type Parameters

  • T = void

Hierarchy (view full)

  • Adds a listener to the event.

    Parameters

    Returns (() => void)

    A function to remove the listener.

      • (): void
      • Returns void