File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { PostgrestClient } from '@supabase/postgrest-js'
2
2
import { createClient , SupabaseClient } from '../../src/index'
3
3
import { Database } from '../types'
4
- import type { GenericSchema } from '../../src/lib/types'
5
4
import type { AuthChangeEvent } from '@supabase/auth-js'
6
5
7
6
// Testable subclass to expose protected methods/properties for testing
8
- class TestableSupabaseClient <
9
- DB = any ,
10
- SN extends string & keyof DB = 'public' extends keyof DB ? 'public' : string & keyof DB ,
11
- S extends GenericSchema = DB [ SN ] extends GenericSchema ? DB [ SN ] : any
12
- > extends SupabaseClient < DB , SN , S > {
7
+ class TestableSupabaseClient extends SupabaseClient {
13
8
public getAccessToken = this . _getAccessToken . bind ( this )
14
9
public listenForAuthEvents = this . _listenForAuthEvents . bind ( this )
15
10
public get changedAccessTokenPublic ( ) {
You can’t perform that action at this time.
0 commit comments