Documentation
    Preparing search index...

    Class SimpleEventBus<Events>

    Simple event bus class that allows adding event listeners and emitting events. Events can be emitted by calling dispatchEvent.

    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