We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51b310d commit 39c6b50Copy full SHA for 39c6b50
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