@@ -9,12 +9,11 @@ import {
99 useQueryAndPagination as useQueryAndPaginationVanilla ,
1010} from '../../routers/reactRouter'
1111import { zodParser } from '../util'
12- import { NonNullableRecord } from '../../utils'
1312import { RouterWithHistoryOptions } from '../../routers/shared'
1413
1514export const useQuery = <
16- TQuery extends NonNullableRecord < TSchemaOutput > ,
17- TSchemaOutput extends Partial < AbstractQuery > ,
15+ TQuery extends AbstractQuery ,
16+ TSchemaOutput extends Partial < TQuery > ,
1817 TSchemaDef extends ZodTypeDef = ZodTypeDef ,
1918 TSchemaInput = TSchemaOutput ,
2019> (
@@ -24,8 +23,8 @@ export const useQuery = <
2423) => useQueryVanilla ( defaultQuery , zodParser ( schemaQuery ) , options )
2524
2625export const useQueryAndPagination = <
27- TQuery extends NonNullableRecord < TSchemaOutput > ,
28- TSchemaOutput extends Partial < AbstractQuery > ,
26+ TQuery extends AbstractQuery ,
27+ TSchemaOutput extends Partial < TQuery > ,
2928 TSchemaDef extends ZodTypeDef = ZodTypeDef ,
3029 TSchemaInput = TSchemaOutput ,
3130> (
0 commit comments