Skip to content

Commit

Permalink
Fix global addEventListener() generic fallback type
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jan 9, 2024
1 parent 43190bb commit 4cd1854
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-mayflies-punch.md
@@ -0,0 +1,5 @@
---
'nxjs-runtime': patch
---

Fix global `addEventListener()` generic fallback type
6 changes: 6 additions & 0 deletions packages/runtime/src/window.ts
Expand Up @@ -109,6 +109,12 @@ export function addEventListener(
options?: AddEventListenerOptions | boolean
): void;

export function addEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: AddEventListenerOptions | boolean
): void;

export function addEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
Expand Down

0 comments on commit 4cd1854

Please sign in to comment.