Skip to content

Commit

Permalink
Revert "[ts] Improve ListenerFn interface (#193)"
Browse files Browse the repository at this point in the history
This reverts commit 48ef1d6.
  • Loading branch information
lpinca committed Apr 30, 2019
1 parent 5294132 commit 0843125
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 @@ -51,7 +51,7 @@ declare class EventEmitter<EventTypes extends string | symbol = string | symbol>

declare namespace EventEmitter {
export interface ListenerFn {
(...args: Array<any>): void | Promise<void>;
(...args: Array<any>): void;
}

export interface EventEmitterStatic {
Expand Down

2 comments on commit 0843125

@PikachuEXE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why revert it though?

@PikachuEXE
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh just saw the comments in #193
Ignore me :P

Please sign in to comment.