Skip to content

Commit f427ec3

Browse files
AlxandrKent C. Dodds
authored and
Kent C. Dodds
committed
fix(TS): make event functions accept Element (#150)
closes #149
1 parent 8b5231e commit f427ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typings/events.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export type EventType =
6969
| 'transitionEnd'
7070
| 'doubleClick'
7171

72-
export type FireFunction = (element: HTMLElement, event: Event) => boolean
72+
export type FireFunction = (element: Element, event: Event) => boolean
7373
export type FireObject = {
74-
[K in EventType]: (element: HTMLElement, options?: {}) => boolean
74+
[K in EventType]: (element: Element, options?: {}) => boolean
7575
}
7676

7777
export const fireEvent: FireFunction & FireObject

0 commit comments

Comments
 (0)