Skip to content

Commit 609dc51

Browse files
committed
chore: add comment for autocomplete
1 parent 2e5f26c commit 609dc51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/client.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ describe('Dynamic schema', () => {
8181

8282
describe('Postgrest 13 client', () => {
8383
test('should be able to declare specific postgrestVersion ', async () => {
84+
// Note: The template argument properties (postgrestVersion) will not be autocompleted
85+
// due to a Typescript bug tracked here: https://github.com/microsoft/TypeScript/issues/56299
8486
createClient<Database, { postgrestVersion: 13 }>('HTTP://localhost:3000', KEY)
8587
createClient<Database, { postgrestVersion: 12 }>('HTTP://localhost:3000', KEY)
8688
// @ts-expect-error should raise error if provinding invalid version

0 commit comments

Comments
 (0)