We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51b310d + 39c6b50 commit 8c2b803Copy full SHA for 8c2b803
index.d.ts
@@ -3,4 +3,4 @@ type DelegatedEventListener = (this: Element, ev: CustomEvent & {currentTarget:
3
export function on<K extends keyof GlobalEventHandlersEventMap>(name: K, selector: string, listener: (this: GlobalEventHandlers & Element, ev: GlobalEventHandlersEventMap[K] & {currentTarget: Element}) => any, options?: EventListenerOptions): void;
4
export function on(name: string, selector: string, listener: DelegatedEventListener, options?: EventListenerOptions): void;
5
export function off(name: string, selector: string, listener: DelegatedEventListener, options?: EventListenerOptions): void;
6
-export function fire(target: Element, name: string, detail?: any): boolean;
+export function fire(target: Document | Element, name: string, detail?: any): boolean;
0 commit comments