Skip to content

Commit

Permalink
Fix small interface issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Mar 30, 2022
1 parent d4d2936 commit 5cbcca6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
export function add<
Target extends EventTarget,
Callback extends EventListener,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target,
el: Target | Target[],
eventName: string,
callback: Callback,
options?: AddEventListenerOptions | boolean,
): Target

export function once<
Target extends EventTarget,
Callback extends EventListener,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target,
el: Target | Target[],
eventName: string,
callback: Callback,
options?: AddEventListenerOptions | boolean,
): Target

export function remove<
Target extends EventTarget,
Callback extends EventListener,
Callback extends EventListenerOrEventListenerObject,
>(
el: Target,
el: Target | Target[],
eventName: string,
callback: Callback,
options?: EventListenerOptions | boolean,
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5cbcca6

Please sign in to comment.