This repository was archived by the owner on Oct 9, 2025. It is now read-only.
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<
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' >
Original file line number Diff line number Diff 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
103103export type Prettify < T > = { [ K in keyof T ] : T [ K ] } & { }
You can’t perform that action at this time.
0 commit comments