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