Skip to content

Commit

Permalink
fix: emit second args should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Dec 1, 2023
1 parent 1612f83 commit 84dfea4
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 @@ -21,7 +21,7 @@ export namespace EventMittNamespace {

on: (inName: string, inHandler: EventHandler, inOptions?: EventOptions) => EventListener;
off: (inName: string, inHandler?: EventHandler) => void;
emit: (inName: string, inData: any) => void;
emit: (inName: string, inData?: any) => void;
one: (inName: string, inHandler: EventHandler) => EventListener;
once: (inName: string, inHandler: EventHandler) => EventListener;
upon: (inName: string, inHandler: EventHandler) => EventListener;
Expand Down

0 comments on commit 84dfea4

Please sign in to comment.