ts-lambda-api - v2.5.2
    Preparing search index...

    Function listenerCount

    • Returns the number of listeners listening for the event named eventName. If listener is provided, it will return how many times the listener is found in the list of the listeners of the event.

      Type Parameters

      • K

      Parameters

      • eventName: Key<K, T>

        The name of the event being listened for

      • Optionallistener: Listener<K, T>

        The event handler function

      Returns number

      v3.2.0