Skip to content

Commit

Permalink
[ts] Improve ListenerFn interface (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
retyui authored and lpinca committed Apr 29, 2019
1 parent bb9242b commit 48ef1d6
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;
(...args: Array<any>): void | Promise<void>;
}

export interface EventEmitterStatic {
Expand Down

0 comments on commit 48ef1d6

Please sign in to comment.