Documentation
    Preparing search index...

    Base event adds ability to a class to act as an event. You can emit the event by calling "Event.dispatch" method.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    emitter?: Emitter<any>

    The emitter to use for dispatching events

    Methods

    • Specify the emitter instance to use for dispatching events

      Parameters

      • emitter: Emitter<any>

        The emitter instance to use

      Returns void

    • Dispatch the current class as an event. The method takes the arguments accepted by the class constructor.

      Type Parameters

      Parameters

      • this: T
      • ...args: ConstructorParameters<T>

        Constructor arguments for the event instance

      Returns Promise<void>

      RuntimeException if no emitter is configured