Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventDispatcher Abstract

Hierarchy

Index

Constructors

Methods

Constructors

Methods

  • Removes a handler from event type. If no handler is provided, all handlers will be removed from the event

    Type Parameters

    • K extends never

    Parameters

    • type: K
    • Optional handler: ((event: EventMap[K]) => void)

    Returns EventDispatcher

    The object that dispatched the event

  • Adds function handler to handle event type just once. The handler will be automatically removed after first execution

    Type Parameters

    • K extends never

    Parameters

    Returns EventDispatcher

    The object that dispatched the event

Generated using TypeDoc