import { type EventListeners } from "https://deno.land/x/defer@0.6.0/src/event_listeners.d.ts";
Methods
addEventListener<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | EventListenerOptions,
dispatchEvent<K extends keyof EventHandlersEventMap<T>>(event: EventHandlersEventMap<T>[K]): boolean
dispatchEvent(event: Event): boolean
addListener<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | AddEventListenerOptions,
addListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeListener<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | EventListenerOptions,
fire<K extends keyof EventHandlersEventMap<T>>(event: EventHandlersEventMap<T>[K]): boolean
fire(event: Event): boolean
on<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | AddEventListenerOptions,
on(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
off<K extends keyof EventHandlersEventMap<T>>(): void
type: K,
listener: (this: Defer<T>, ev: EventHandlersEventMap<T>[K]) => void,
options?: boolean | EventListenerOptions,
emit<K extends keyof EventHandlersEventMap<T>>(event: EventHandlersEventMap<T>[K]): boolean
emit(event: Event): boolean