Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BusFactory

Hierarchy

  • BusFactory

Callable

  • __call(instance?: undefined | string): EventBus
  • Parameters

    • Optional instance: undefined | string

    Returns EventBus

Index

Methods

Methods

On

  • On(...events: string[]): TypedPropertyDecorator<AnyFunction>
  • Parameters

    • Rest ...events: string[]

    Returns TypedPropertyDecorator<AnyFunction>

emit

  • emit(event: string, ...args: any[]): EventBus
  • Parameters

    • event: string
    • Rest ...args: any[]

    Returns EventBus

off

  • off(events: string[] | string, handler: AnyFunction): EventBus
  • Parameters

    • events: string[] | string
    • handler: AnyFunction

    Returns EventBus

on

  • on(events: string[] | string, handler: AnyFunction): EventBus
  • Parameters

    • events: string[] | string
    • handler: AnyFunction

    Returns EventBus

once

  • once(events: string[] | string, handler: AnyFunction): EventBus
  • Parameters

    • events: string[] | string
    • handler: AnyFunction

    Returns EventBus

Generated using TypeDoc