File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export interface AddEventListenerOptions extends EventListenerOptions {
122
122
once ?: boolean ;
123
123
}
124
124
125
- export type EventTargetListener = ( ( event : Event ) => any ) | { handleEvent ( event : Event ) : void } ;
125
+ export type EventTargetListener = ( ( event : Event ) => void ) | { handleEvent ( event : Event ) : void } ;
126
126
127
127
export interface PartialEvent extends Partial < Event > {
128
128
type : string ;
@@ -163,7 +163,7 @@ export interface EventTarget {
163
163
}
164
164
165
165
type EventAttributes < T extends string > = {
166
- [ K in T ] : ( ev : Event ) => any ;
166
+ [ K in T ] : ( ( ev : Event ) => void ) | null ;
167
167
} ;
168
168
169
169
type EventTargetConstructor = {
Original file line number Diff line number Diff line change 4
4
"noEmit" : true ,
5
5
"strict" : true
6
6
},
7
- "exclude" : [" test/types.ts" ]
8
- }
7
+ "files" : [
8
+ " test/types.ts"
9
+ ],
10
+ "exclude" : [
11
+ " node_modules"
12
+ ]
13
+ }
You can’t perform that action at this time.
0 commit comments