locar
    Preparing search index...

    Class EventEmitter

    Event emitter class to handle events.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    eventHandlers: Record<string, ((...args: any[]) => void)[]>

    Methods

    • Emit an event.

      Parameters

      • eventName: string

        the event to emit.

      • ...params: any[]

      Returns void

    • Remove an event handler.

      Parameters

      • eventName: string

        the event to remove a handler from.

      • eventHandler: (...args: any[]) => void

        the event handler function to remove.

      Returns void

    • Add an event handler.

      Parameters

      • eventName: string

        the event to handle.

      • eventHandler: (...args: any[]) => void

        the event handler function.

      Returns void