Skip to content

Commit d4e3d09

Browse files
committed
Make types compatible with TS 3.x
1 parent 82043f0 commit d4e3d09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/integrations/supabase.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export const DB_OPERATIONS_TO_INSTRUMENT = ['select', 'insert', 'upsert', 'updat
7070
type AuthOperationFn = (...args: unknown[]) => Promise<unknown>;
7171
type AuthOperationName = (typeof AUTH_OPERATIONS_TO_INSTRUMENT)[number];
7272
type AuthAdminOperationName = (typeof AUTH_ADMIN_OPERATIONS_TO_INSTRUMENT)[number];
73-
type PostgRESTQueryOperationName = (typeof DB_OPERATIONS_TO_INSTRUMENT)[number];
7473
type PostgRESTQueryOperationFn = (...args: unknown[]) => PostgRESTFilterBuilder;
7574

7675
export interface SupabaseClientInstance {
@@ -80,7 +79,7 @@ export interface SupabaseClientInstance {
8079
}
8180

8281
export interface PostgRESTQueryBuilder {
83-
[key: PostgRESTQueryOperationName]: PostgRESTQueryOperationFn;
82+
[key: string]: PostgRESTQueryOperationFn;
8483
}
8584

8685
export interface PostgRESTFilterBuilder {

0 commit comments

Comments
 (0)