diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index d520d2bca..971cb8945 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -130,7 +130,7 @@ export default class SupabaseClient< * * @param relation - The table or view name to query */ - from: PostgrestClient['from'] = (relation: string) => { + from(relation: string) { return this.rest.from(relation) } @@ -142,11 +142,7 @@ export default class SupabaseClient< * * @param schema - The name of the schema to query */ - schema: PostgrestClient['schema'] = < - DynamicSchema extends string & keyof Database - >( - schema: DynamicSchema - ) => { + schema(schema: DynamicSchema) { return this.rest.schema(schema) } @@ -171,17 +167,14 @@ export default class SupabaseClient< * `"estimated"`: Uses exact count for low numbers and planned count for high * numbers. */ - rpc: PostgrestClient['rpc'] = < - FunctionName extends string & keyof Schema['Functions'], - Function_ extends Schema['Functions'][FunctionName] - >( - fn: FunctionName, - args: Function_['Args'] = {}, + rpc( + fn: FnName, + args: Fn['Args'] = {}, options?: { head?: boolean count?: 'exact' | 'planned' | 'estimated' } - ) => { + ) { return this.rest.rpc(fn, args, options) }