Skip to content

Commit

Permalink
fix(testing-helpers): correct type declaration for oneEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
driesva authored and Westbrook committed Apr 23, 2024
1 parent 10f7ff2 commit 549c2ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/moody-panthers-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@open-wc/testing-helpers': patch
---

fix(testing-helpers): correct type declaration for `oneEvent`

`preventDefault` parameter is not used
2 changes: 1 addition & 1 deletion packages/testing-helpers/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

export type OneEventFn =
<TEvent extends Event = CustomEvent>(eventTarget: EventTarget, eventName: string, preventDefault: boolean)=> Promise<TEvent>
<TEvent extends Event = CustomEvent>(eventTarget: EventTarget, eventName: string) => Promise<TEvent>

0 comments on commit 549c2ef

Please sign in to comment.