Skip to main content

core.eventtarget_2.listenercount

Home > @medplum/core > EventTarget_2 > listenerCount

EventTarget_2.listenerCount() method

Gets the number of listeners for the provided Event type.

Signature:

listenerCount(type: string): number;

Parameters

Parameter

Type

Description

type

string

The name of the Event type.

Returns:

number

The number of listeners for this Event type.