UNPKG

@jjwesterkamp/event-delegation

Version:

Event delegation for browser DOM events. Flexible, cross-browser compatible and Typescript-focused.

17 lines (16 loc) 723 B
import type { DelegationConfig, EventHandler as EventHandlerInterface } from '../event-delegation'; export declare class EventHandler<R extends Element> implements EventHandlerInterface<R> { protected readonly config: DelegationConfig<R, any, any>; protected readonly handler: (event: Event) => void; protected readonly actualListenerOptions: boolean | Readonly<AddEventListenerOptions> | undefined; protected _isAttached: boolean; protected _isDestroyed: boolean; constructor(config: DelegationConfig<R, any, any>); isAttached(): boolean; isDestroyed(): boolean; root(): R; selector(): string; eventType(): string; remove(): void; protected isOnceListener(): boolean; }