Skip to content

Commit 931e1e6

Browse files
committed
feat(docs): explicitly mark options as optional
1 parent ad49a57 commit 931e1e6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/core/postgrest-js/src/PostgrestQueryBuilder.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,10 @@ export default class PostgrestQueryBuilder<
6666
>,
6767
>(
6868
columns?: Query,
69-
{
70-
head = false,
71-
count,
72-
}: {
69+
options?: {
7370
head?: boolean
7471
count?: 'exact' | 'planned' | 'estimated'
75-
} = {}
72+
}
7673
): PostgrestFilterBuilder<
7774
ClientOptions,
7875
Schema,
@@ -82,6 +79,8 @@ export default class PostgrestQueryBuilder<
8279
Relationships,
8380
'GET'
8481
> {
82+
const { head = false, count } = options ?? {}
83+
8584
const method = head ? 'HEAD' : 'GET'
8685
// Remove whitespaces except when quoted
8786
let quoted = false

0 commit comments

Comments
 (0)