Interface TargetWithEvents Properties Optional __ot_ listeners__ot_ listeners?: {}
Type declaration [ name: string ]: WeakMap < Func < void > , Func < void > > Methods Optional add Event Listeneradd Event Listener( event: string , listener: ( ( ... args: unknown [] ) => void ) , opts?: { once: boolean } ) : unknown Parameters event: string listener: ( ( ... args: unknown [] ) => void ) ( ... args: unknown [] ) : void Optional opts: { once: boolean } Returns unknown Optional remove Event Listenerremove Event Listener( event: string , listener: ( ( ... args: unknown [] ) => void ) , opts?: { once: boolean } ) : unknown Parameters event: string listener: ( ( ... args: unknown [] ) => void ) ( ... args: unknown [] ) : void Optional opts: { once: boolean } Returns unknown Legend Variable Function Function with type parameter Type alias Type alias with type parameter Interface Interface with type parameter Property Method Class Class with type parameter Settings Theme OS Light Dark
Minimum requirements that the object needs to have so that it can bind to the events instead of function this is "addEventListener" and "removeEventListener" - see {@link isListenerObject}