Interface Listener<T>

Generic typed interface for defining a typed listener function.

Listener

Type Parameters

  • T
  • This function is called in case of an event.

    Parameters

    • event: T

      The typed event parameter.

    Returns any

    The returned value of the function will be ignored.