Skip to content

Commit a5b6b8b

Browse files
committed
chore: fix types
1 parent 7e844dc commit a5b6b8b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/SupabaseClient.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import {
55
PostgrestFilterBuilder,
66
PostgrestQueryBuilder,
77
} from '@supabase/postgrest-js'
8-
import { RealtimeChannel, RealtimeClient, RealtimeClientOptions } from '@supabase/realtime-js'
8+
import {
9+
RealtimeChannel,
10+
RealtimeChannelOptions,
11+
RealtimeClient,
12+
RealtimeClientOptions,
13+
} from '@supabase/realtime-js'
914
import { StorageClient as SupabaseStorageClient } from '@supabase/storage-js'
1015
import { DEFAULT_HEADERS } from './lib/constants'
1116
import { fetchWithAuth } from './lib/fetch'
@@ -197,7 +202,7 @@ export default class SupabaseClient<
197202
* @param {Object} opts - The options to pass to the Realtime channel.
198203
*
199204
*/
200-
channel(name: string, opts: { [key: string]: any } = {}): RealtimeChannel {
205+
channel(name: string, opts: RealtimeChannelOptions = { config: {} }): RealtimeChannel {
201206
return this.realtime.channel(name, opts)
202207
}
203208

0 commit comments

Comments
 (0)