Options
All
  • Public
  • Public/Protected
  • All
Menu

Event emitter.

Type Parameters

  • T

Hierarchy

Index

Methods

Methods

  • off<U>(eventName: U, listener: Listener<T, U>): void
  • Unsubscribes from an event.

    Type Parameters

    • U extends string

    Parameters

    • eventName: U

      The event name.

    • listener: Listener<T, U>

      The event listener.

    Returns void

  • Subscribes for an event.

    Type Parameters

    • U extends string

    Parameters

    • eventName: U

      The event name.

    • listener: Listener<T, U>

      The event listener.

    Returns UnsubscribeFn

    The unsubscribe function.