File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -351,15 +351,15 @@ export default class PostgrestTransformBuilder<
351
351
*
352
352
* @param value - The maximum number of rows that can be affected
353
353
*/
354
- maxAffected ( value : number ) : MaxAffectedEnabled < ClientOptions [ 'postgrestVersion ' ] > extends true
354
+ maxAffected ( value : number ) : MaxAffectedEnabled < ClientOptions [ 'PostgrestVersion ' ] > extends true
355
355
? // TODO: update the RPC case to only work on RPC that returns SETOF rows
356
356
Method extends 'PATCH' | 'DELETE' | 'RPC'
357
357
? this
358
358
: InvalidMethodError < 'maxAffected method only available on update or delete' >
359
359
: InvalidMethodError < 'maxAffected method only available on postgrest 13+' > {
360
360
this . headers . append ( 'Prefer' , 'handling=strict' )
361
361
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
363
363
? Method extends 'PATCH' | 'DELETE' | 'RPC'
364
364
? this
365
365
: InvalidMethodError < 'maxAffected method only available on update or delete' >
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ export type GetGenericDatabaseWithOptions<
96
96
: DatabaseWithOptions < Omit < Database , typeof INTERNAL_SUPABASE_OPTIONS > , Opts >
97
97
: DatabaseWithOptions < Database , Opts >
98
98
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
101
101
102
102
// https://twitter.com/mattpocockuk/status/1622730173446557697
103
103
export type Prettify < T > = { [ K in keyof T ] : T [ K ] } & { }
You can’t perform that action at this time.
0 commit comments