@@ -31,25 +31,33 @@ export type ErrorResponse<TAppRoute extends AppRoute> = ClientInferResponses<
3131 'ignore'
3232> ;
3333
34- export type UseQueryOptions < TAppRoute extends AppRoute > =
35- TanStackUseQueryOptions < DataResponse < TAppRoute > , ErrorResponse < TAppRoute > > ;
36-
37- export type UseQueryResult < TAppRoute extends AppRoute > = TanStackUseQueryResult <
34+ export type UseQueryOptions <
35+ TAppRoute extends AppRoute ,
36+ TData = DataResponse < TAppRoute > ,
37+ > = TanStackUseQueryOptions <
3838 DataResponse < TAppRoute > ,
39- ErrorResponse < TAppRoute >
39+ ErrorResponse < TAppRoute > ,
40+ TData
4041> ;
4142
42- export type UseInfiniteQueryOptions < TAppRoute extends AppRoute > =
43- TanStackUseInfiniteQueryOptions <
44- DataResponse < TAppRoute > ,
45- ErrorResponse < TAppRoute >
46- > ;
43+ export type UseQueryResult <
44+ TAppRoute extends AppRoute ,
45+ TData = DataResponse < TAppRoute > ,
46+ > = TanStackUseQueryResult < TData , ErrorResponse < TAppRoute > > ;
47+
48+ export type UseInfiniteQueryOptions <
49+ TAppRoute extends AppRoute ,
50+ TData = DataResponse < TAppRoute > ,
51+ > = TanStackUseInfiniteQueryOptions <
52+ DataResponse < TAppRoute > ,
53+ ErrorResponse < TAppRoute > ,
54+ TData
55+ > ;
4756
48- export type UseInfiniteQueryResult < TAppRoute extends AppRoute > =
49- TanStackUseInfiniteQueryResult <
50- DataResponse < TAppRoute > ,
51- ErrorResponse < TAppRoute >
52- > ;
57+ export type UseInfiniteQueryResult <
58+ TAppRoute extends AppRoute ,
59+ TData = DataResponse < TAppRoute > ,
60+ > = TanStackUseInfiniteQueryResult < TData , ErrorResponse < TAppRoute > > ;
5361
5462type InferClientArgs < TClient extends InitClientReturn < any , any > > =
5563 TClient extends InitClientReturn < any , infer TClientArgs >
0 commit comments