Skip to content

Commit 60af8e3

Browse files
committed
chore: use CamelCase
1 parent 2a6debc commit 60af8e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PostgrestTransformBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ export default class PostgrestTransformBuilder<
351351
*
352352
* @param value - The maximum number of rows that can be affected
353353
*/
354-
maxAffected(value: number): MaxAffectedEnabled<ClientOptions['postgrestVersion']> extends true
354+
maxAffected(value: number): MaxAffectedEnabled<ClientOptions['PostgrestVersion']> extends true
355355
? // TODO: update the RPC case to only work on RPC that returns SETOF rows
356356
Method extends 'PATCH' | 'DELETE' | 'RPC'
357357
? this
358358
: InvalidMethodError<'maxAffected method only available on update or delete'>
359359
: InvalidMethodError<'maxAffected method only available on postgrest 13+'> {
360360
this.headers.append('Prefer', 'handling=strict')
361361
this.headers.append('Prefer', `max-affected=${value}`)
362-
return this as unknown as MaxAffectedEnabled<ClientOptions['postgrestVersion']> extends true
362+
return this as unknown as MaxAffectedEnabled<ClientOptions['PostgrestVersion']> extends true
363363
? Method extends 'PATCH' | 'DELETE' | 'RPC'
364364
? this
365365
: InvalidMethodError<'maxAffected method only available on update or delete'>

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export type GetGenericDatabaseWithOptions<
9696
: DatabaseWithOptions<Omit<Database, typeof INTERNAL_SUPABASE_OPTIONS>, Opts>
9797
: DatabaseWithOptions<Database, Opts>
9898

99-
export type MaxAffectedEnabled<postgrestVersion extends string | undefined> =
100-
postgrestVersion extends `13${string}` ? true : false
99+
export type MaxAffectedEnabled<PostgrestVersion extends string | undefined> =
100+
PostgrestVersion extends `13${string}` ? true : false
101101

102102
// https://twitter.com/mattpocockuk/status/1622730173446557697
103103
export type Prettify<T> = { [K in keyof T]: T[K] } & {}

0 commit comments

Comments
 (0)