Options
All
  • Public
  • Public/Protected
  • All
Menu

Listeners for allowing a creating listeners and trigger callbacks.

Hierarchy

  • Listeners

Index

Constructors

constructor

Properties

listeners

listeners: Record<string, any[]>

Methods

add

  • add(eventName: string, callback: any): void

listenersForEvent

  • listenersForEvent(eventName: string): any[]

trigger

  • trigger(eventName: string, ...data: any[]): void

Generated using TypeDoc