Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEmitter

Interface for an Event Emitter

Hierarchy

  • IEmitter

Index

Methods

Methods

emit

  • emit(event: string, payload?: any): void
  • Emits an event with an optional payload

    Parameters

    • event: string

      Name of the event to be emitted

    • Optional payload: any

      Payload of data to be sent to subscribers

    Returns void

Generated using TypeDoc