Skip to content

Commit d0d49bc

Browse files
authored
Merge pull request #180 from PhoenixCreation/master
fix: type error for callback of on() in SupabaseRealtimeClient
2 parents 329edd0 + 0e31126 commit d0d49bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/SupabaseRealtimeClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class SupabaseRealtimeClient {
3232
* @param event The event
3333
* @param callback A callback function that is called whenever the event occurs.
3434
*/
35-
on(event: SupabaseEventTypes, callback: Function) {
35+
on(event: SupabaseEventTypes, callback: (payload: SupabaseRealtimePayload<any>) => void) {
3636
this.subscription.on(event, (payload: any) => {
3737
let enrichedPayload: SupabaseRealtimePayload<any> = {
3838
schema: payload.schema,

0 commit comments

Comments
 (0)