Skip to content

Commit 1117a51

Browse files
docs: typo in useQuery.test (#965)
1 parent e9770b7 commit 1117a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/tests/useQuery.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('useQuery', () => {
2929
expectType<string | undefined>(fromQueryFn.data)
3030
expectType<unknown>(fromQueryFn.error)
3131

32-
// it should be possible to specify the error type
32+
// it should be possible to specify the result type
3333
const withResult = useQuery<string>(key, () => 'test')
3434
expectType<string | undefined>(withResult.data)
3535
expectType<unknown | null>(withResult.error)

0 commit comments

Comments
 (0)