Skip to content

Commit

Permalink
Specify return type for function broadcasters
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisprudlo committed Oct 29, 2024
1 parent d9a333e commit ce92102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/echo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ type EchoOptions<T extends keyof Broadcaster> = {
/**
* The broadcast connector.
*/
broadcaster: T extends 'function' ? ((options: EchoOptions<T>) => void) : T,
broadcaster: T extends 'function' ? ((options: EchoOptions<T>) => any) : T,

[key: string]: any,
};

0 comments on commit ce92102

Please sign in to comment.