Gets the number of listeners for a given event.
class EventEmitter {
listenerCount(type: keyof EventsWithWildcard<Events>): number;
}
Parameter | Type | Description |
---|---|---|
type | keyof [EventsWithWildcard](./puppeteer.eventswithwildcard.md)<Events> | the event to get the listener count for |
Returns:
number
the number of listeners bound to the given event