Skip to content

Function: addEventListener()

ts
function addEventListener(...args): any;

Parameters

ParameterType
...argsany[]

Returns

any

Deprecated

Use on() instead. on() returns an Unsubscribe function. Named to match the V3 export name; index.ts re-exports this instead of the raw emitter version, ensuring the deprecation guard fires.