Skip to content

Commit e92b667

Browse files
authoredAug 22, 2020
[ts] Do not require index signature in event map typing (#231)
1 parent aa8d192 commit e92b667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ declare namespace EventEmitter {
9494
export type ValidEventTypes =
9595
| string
9696
| symbol
97-
| { [K in string | symbol]: any[] | ((...args: any[]) => void) };
97+
| { [K in string | symbol]: any[] | ((...args: any[]) => void) | undefined };
9898

9999
export type EventNames<T extends ValidEventTypes> = T extends string | symbol
100100
? T

0 commit comments

Comments
 (0)
Please sign in to comment.