Skip to content

Commit 2352eb1

Browse files
avalletesoedirgo
authored andcommitted
chore: add test
1 parent cf81db0 commit 2352eb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/select-query-parser/default-inference-d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { TypeEqual } from 'ts-expect'
55
const REST_URL = 'http://localhost:3000'
66

77
// Check for PostgrestClient without types provided to the client
8+
{
9+
const postgrest = new PostgrestClient(REST_URL)
10+
const { data } = await postgrest.from('user_profile').select()
11+
expectType<TypeEqual<typeof data, any[] | null>>(true)
12+
}
813
// basic embeding
914
{
1015
const postgrest = new PostgrestClient(REST_URL)

0 commit comments

Comments
 (0)