Add EventTarget methods to any class by extending them with EventObject
export declare type EventListenerCallback = (event: Event) => any;
export interface EventListenerOptions {
once?: boolean;
passive?: boolean;
capture?: boolean;
}
export declare class EventObject implements EventTarget {
protected _eventTarget: EventTarget;
constructor(target?: EventTarget);
readonly childEventObjects: EventObject[];
readonly parentEventObject: EventObject;
appendChild(target: EventObject): EventObject;
removeChild(target: EventObject): EventObject;
addEventListener(type: string, callback: EventListenerCallback, options?: (EventListenerOptions | boolean)): void;
dispatchEvent(event: Event): boolean;
removeEventListener(type: string, callback: EventListenerCallback, options?: (EventListenerOptions | boolean)): void;