Skip to content

Commit

Permalink
Merge pull request #180 from PhoenixCreation/master
Browse files Browse the repository at this point in the history
fix: type error for callback of on() in SupabaseRealtimeClient
  • Loading branch information
kiwicopple authored May 25, 2021
2 parents 329edd0 + 0e31126 commit d0d49bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/SupabaseRealtimeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SupabaseRealtimeClient {
* @param event The event
* @param callback A callback function that is called whenever the event occurs.
*/
on(event: SupabaseEventTypes, callback: Function) {
on(event: SupabaseEventTypes, callback: (payload: SupabaseRealtimePayload<any>) => void) {
this.subscription.on(event, (payload: any) => {
let enrichedPayload: SupabaseRealtimePayload<any> = {
schema: payload.schema,
Expand Down

0 comments on commit d0d49bc

Please sign in to comment.