File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,21 @@ export type EventType =
71
71
| 'transitionEnd'
72
72
| 'doubleClick'
73
73
74
- export type FireFunction = ( element : Element | Window , event : Event ) => boolean
74
+ export type FireFunction = (
75
+ element : Document | Element | Window ,
76
+ event : Event ,
77
+ ) => boolean
75
78
export type FireObject = {
76
- [ K in EventType ] : ( element : Element | Window , options ?: { } ) => boolean
79
+ [ K in EventType ] : (
80
+ element : Document | Element | Window ,
81
+ options ?: { } ,
82
+ ) => boolean
77
83
}
78
84
export type CreateObject = {
79
- [ K in EventType ] : ( element : Element | Window , options ?: { } ) => Event
85
+ [ K in EventType ] : (
86
+ element : Document | Element | Window ,
87
+ options ?: { } ,
88
+ ) => Event
80
89
}
81
90
82
91
export const createEvent : CreateObject
You can’t perform that action at this time.
0 commit comments