core.typedeventtarget.addeventlistener
Home > @medplum/core > TypedEventTarget > addEventListener
TypedEventTarget.addEventListener() method
Signature:
addEventListener<TEventType extends keyof TEvents & string>(type: TEventType, handler: (event: TEvents[TEventType]) => void): void;
Parameters
Parameter | Type | Description |
---|---|---|
type | TEventType | |
handler | (event: TEvents[TEventType]) => void |
Returns:
void