Skip to content

Commit

Permalink
made payload argument optional in EventEmitter.emit
Browse files Browse the repository at this point in the history
  • Loading branch information
jleeson committed Nov 12, 2024
1 parent d972b06 commit 3c3db95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/firefly/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare module "@outwalk/firefly" {

private static events: Record<string, Function[]>;

static emit(event: string, payload: any): void;
static emit(event: string, payload?: any): void;
static on(event: string, callback: Function): void;
}

Expand Down

0 comments on commit 3c3db95

Please sign in to comment.