Skip to content

Commit

Permalink
fix type error on named export
Browse files Browse the repository at this point in the history
  • Loading branch information
gfmio committed May 11, 2020
1 parent e879760 commit c3cf984
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ declare namespace EventEmitter {
}

export interface EventEmitterStatic {
new <EventTypes extends ValidEventTypes>(): EventEmitter<EventTypes>;
new <
EventTypes extends ValidEventTypes = string | symbol,
Context = any
>(): EventEmitter<EventTypes, Context>;
}

export const EventEmitter: EventEmitterStatic;
Expand Down

0 comments on commit c3cf984

Please sign in to comment.