Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit a376d5f

Browse files
committed
chore: use CamelCasing convention
1 parent ce274ac commit a376d5f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/PostgrestClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class PostgrestClient<
1818
Database = any,
1919
ClientOptions extends ClientServerOptions = GetGenericDatabaseWithOptions<
2020
Database,
21-
{ postgrestVersion: '12' }
21+
{ PostgrestVersion: '12' }
2222
>['options'],
2323
SchemaName extends string &
2424
keyof GetGenericDatabaseWithOptions<Database>['db'] = 'public' extends keyof GetGenericDatabaseWithOptions<Database>['db']

src/select-query-parser/result.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import {
2121
SelectQueryError,
2222
} from './utils'
2323

24-
export type SpreadOnManyEnabled<postgrestVersion extends string | undefined> =
25-
postgrestVersion extends `13${string}` ? true : false
24+
export type SpreadOnManyEnabled<PostgrestVersion extends string | undefined> =
25+
PostgrestVersion extends `13${string}` ? true : false
2626

2727
/**
2828
* Main entry point for constructing the result type of a PostgREST query.
@@ -448,7 +448,7 @@ type ProcessSpreadNode<
448448
? Result extends SelectQueryError<infer E>
449449
? SelectQueryError<E>
450450
: ExtractFirstProperty<Result> extends unknown[]
451-
? SpreadOnManyEnabled<ClientOptions['postgrestVersion']> extends true // Spread over an many-to-many relationship, turn all the result fields into correlated arrays
451+
? SpreadOnManyEnabled<ClientOptions['PostgrestVersion']> extends true // Spread over an many-to-many relationship, turn all the result fields into correlated arrays
452452
? ProcessManyToManySpreadNodeResult<Result>
453453
: {
454454
[K in Spread['target']['name']]: SelectQueryError<`"${RelationName}" and "${Spread['target']['name']}" do not form a many-to-one or one-to-one relationship spread not possible`>

src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@ export type GenericSchema = {
7272
}
7373

7474
export type ClientServerOptions = {
75-
postgrestVersion?: string
75+
PostgrestVersion?: string
7676
}
7777

7878
export type DatabaseWithOptions<Database, Options extends ClientServerOptions> = {
7979
db: Database
8080
options: Options
8181
}
8282

83-
const INTERNAL_SUPABASE_OPTIONS = '__internal_supabase'
83+
const INTERNAL_SUPABASE_OPTIONS = '__InternalSupabase'
8484

8585
export type GetGenericDatabaseWithOptions<
8686
Database,
87-
Opts extends ClientServerOptions = { postgrestVersion: '12' }
87+
Opts extends ClientServerOptions = { PostgrestVersion: '12' }
8888
> = IsAny<Database> extends true
8989
? DatabaseWithOptions<Database, Opts>
9090
: typeof INTERNAL_SUPABASE_OPTIONS extends keyof Database

0 commit comments

Comments
 (0)