nyx Typedoc
    Preparing search index...

    Interface EventEmitterLike

    An object that resembles an EventEmitter.

    Since there are many implementations of EventEmitter, and EventEmitterBus only actually needs two methods from it, this type is used instead.

    interface EventEmitterLike {
        on(event: string | symbol, listener: (...args: any[]) => void): unknown;
        removeAllListeners(event?: string | symbol): unknown;
    }
    Index