Skip to content

Commit

Permalink
[ts] Do not require index signature in event map typing (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall authored Aug 22, 2020
1 parent aa8d192 commit e92b667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ declare namespace EventEmitter {
export type ValidEventTypes =
| string
| symbol
| { [K in string | symbol]: any[] | ((...args: any[]) => void) };
| { [K in string | symbol]: any[] | ((...args: any[]) => void) | undefined };

export type EventNames<T extends ValidEventTypes> = T extends string | symbol
? T
Expand Down

0 comments on commit e92b667

Please sign in to comment.