Skip to content

Commit

Permalink
Set listener parameter of once() as optional (#23)
Browse files Browse the repository at this point in the history
Solves #22
  • Loading branch information
abdatta authored Apr 27, 2021
1 parent b001fa2 commit 4865793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emitter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare class EventEmitter {
emit(type: TEventType, ...args: any[]): Promise<any>;
addListener(type: TEventType, listener: TListener): Promise<any>;
prependListener(type: TEventType, listener: TListener): Promise<any>;
once(type: TEventType, listener: TListener): Promise<any>;
once(type: TEventType, listener?: TListener): Promise<any>;
prependOnceListener(type: TEventType, listener: TListener): Promise<any>;
removeListener(type: TEventType, listener: TListener): Promise<any>;
removeAllListeners(type: string | symbol): Promise<any>;
Expand Down

0 comments on commit 4865793

Please sign in to comment.