scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
8 lines (7 loc) • 509 B
TypeScript
/**
* Defines the interface to a type which sources events, such as an HTML5 element
*/
export interface IEventListenerSource {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
}