@@ -130,7 +130,7 @@ export default class SupabaseClient<
130
130
*
131
131
* @param relation - The table or view name to query
132
132
*/
133
- from ( relation : string ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'from' ] > {
133
+ from : PostgrestClient < Database , SchemaName > [ 'from' ] = ( relation : string ) = > {
134
134
return this . rest . from ( relation )
135
135
}
136
136
@@ -142,9 +142,11 @@ export default class SupabaseClient<
142
142
*
143
143
* @param schema - The name of the schema to query
144
144
*/
145
- schema < DynamicSchema extends string & keyof Database > (
145
+ schema : PostgrestClient < Database , SchemaName > [ 'schema' ] = <
146
+ DynamicSchema extends string & keyof Database
147
+ > (
146
148
schema : DynamicSchema
147
- ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'schema' ] > {
149
+ ) = > {
148
150
return this . rest . schema < DynamicSchema > ( schema )
149
151
}
150
152
@@ -169,14 +171,17 @@ export default class SupabaseClient<
169
171
* `"estimated"`: Uses exact count for low numbers and planned count for high
170
172
* numbers.
171
173
*/
172
- rpc < FnName extends string & keyof Schema [ 'Functions' ] , Fn extends Schema [ 'Functions' ] [ FnName ] > (
173
- fn : FnName ,
174
- args : Fn [ 'Args' ] = { } ,
174
+ rpc : PostgrestClient < Database , SchemaName > [ 'rpc' ] = <
175
+ FunctionName extends string & keyof Schema [ 'Functions' ] ,
176
+ Function_ extends Schema [ 'Functions' ] [ FunctionName ]
177
+ > (
178
+ fn : FunctionName ,
179
+ args : Function_ [ 'Args' ] = { } ,
175
180
options ?: {
176
181
head ?: boolean
177
182
count ?: 'exact' | 'planned' | 'estimated'
178
183
}
179
- ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'rpc' ] > {
184
+ ) = > {
180
185
return this . rest . rpc ( fn , args , options )
181
186
}
182
187
0 commit comments