Documentation
    Preparing search index...

    Class EventEmitterBase<Events>Abstract

    Simple event emitter class that allows adding event listeners and emitting events. Events can be emitted by accessing the protected emitter field.

    Type Parameters

    • Events extends Record<EventType, unknown> = never

      A type representing the events that the instance can emit and listen to.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    emitter: Emitter<Events> = ...

    An event emitter for handling custom events.

    Methods