Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete authored and soedirgo committed Nov 5, 2024
1 parent cf81db0 commit 2352eb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/select-query-parser/default-inference-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { TypeEqual } from 'ts-expect'
const REST_URL = 'http://localhost:3000'

// Check for PostgrestClient without types provided to the client
{
const postgrest = new PostgrestClient(REST_URL)
const { data } = await postgrest.from('user_profile').select()
expectType<TypeEqual<typeof data, any[] | null>>(true)
}
// basic embeding
{
const postgrest = new PostgrestClient(REST_URL)
Expand Down

0 comments on commit 2352eb1

Please sign in to comment.