We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9770b7 commit 1117a51Copy full SHA for 1117a51
src/react/tests/useQuery.test.tsx
@@ -29,7 +29,7 @@ describe('useQuery', () => {
29
expectType<string | undefined>(fromQueryFn.data)
30
expectType<unknown>(fromQueryFn.error)
31
32
- // it should be possible to specify the error type
+ // it should be possible to specify the result type
33
const withResult = useQuery<string>(key, () => 'test')
34
expectType<string | undefined>(withResult.data)
35
expectType<unknown | null>(withResult.error)
0 commit comments