File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ import {
5
5
PostgrestFilterBuilder ,
6
6
PostgrestQueryBuilder ,
7
7
} 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'
9
14
import { StorageClient as SupabaseStorageClient } from '@supabase/storage-js'
10
15
import { DEFAULT_HEADERS } from './lib/constants'
11
16
import { fetchWithAuth } from './lib/fetch'
@@ -197,7 +202,7 @@ export default class SupabaseClient<
197
202
* @param {Object } opts - The options to pass to the Realtime channel.
198
203
*
199
204
*/
200
- channel ( name : string , opts : { [ key : string ] : any } = { } ) : RealtimeChannel {
205
+ channel ( name : string , opts : RealtimeChannelOptions = { config : { } } ) : RealtimeChannel {
201
206
return this . realtime . channel ( name , opts )
202
207
}
203
208
You can’t perform that action at this time.
0 commit comments