File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { TypeEqual } from 'ts-expect'
2
2
import { expectError , expectType } from 'tsd'
3
3
import { PostgrestClient , PostgrestError } from '../src/index'
4
4
import { Prettify } from '../src/types'
5
- import { Json } from './ types.generated '
5
+ import { Json } from '../src/select-query-parser/ types'
6
6
import { Database } from './types.override'
7
7
8
8
const REST_URL = 'http://localhost:3000'
@@ -190,9 +190,7 @@ const postgrest = new PostgrestClient<Database>(REST_URL)
190
190
if ( result . error ) {
191
191
throw new Error ( result . error . message )
192
192
}
193
- // getting this w/o the cast, not sure why:
194
- // Parameter type Json is declared too wide for argument type Json
195
- expectType < typeof result . data . bar extends Json ? true : false > ( true )
193
+ expectType < Json > ( result . data . bar )
196
194
expectType < string > ( result . data . baz )
197
195
}
198
196
You can’t perform that action at this time.
0 commit comments