File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -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 ) {
133
+ from ( relation : string ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'from' ] > {
134
134
return this . rest . from ( relation )
135
135
}
136
136
@@ -142,7 +142,9 @@ 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 > ( schema : DynamicSchema ) {
145
+ schema < DynamicSchema extends string & keyof Database > (
146
+ schema : DynamicSchema
147
+ ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'schema' ] > {
146
148
return this . rest . schema < DynamicSchema > ( schema )
147
149
}
148
150
@@ -174,7 +176,7 @@ export default class SupabaseClient<
174
176
head ?: boolean
175
177
count ?: 'exact' | 'planned' | 'estimated'
176
178
}
177
- ) {
179
+ ) : ReturnType < PostgrestClient < Database , SchemaName > [ 'rpc' ] > {
178
180
return this . rest . rpc ( fn , args , options )
179
181
}
180
182
You can’t perform that action at this time.
0 commit comments