@@ -95,7 +95,7 @@ async function responseParser(response: Response, throwOnError?: boolean): Promi
9595}
9696
9797function useQueryFactory < T extends Record < string , any > > (
98- client : Record < string , ClientRequest < any > >
98+ client : Record < string , ClientRequest < any , any , any > >
9999) : UseHonoQuery < T > {
100100 return ( path , method , honoPayload , hookOptions ) => {
101101 return useQuery (
@@ -105,7 +105,7 @@ function useQueryFactory<T extends Record<string, any>>(
105105}
106106
107107function useSuspenseQueryFactory < T extends Record < string , any > > (
108- client : Record < string , ClientRequest < any > >
108+ client : Record < string , ClientRequest < any , any , any > >
109109) : UseHonoSuspenseQuery < T > {
110110 return ( path , method , honoPayload , hookOptions ) => {
111111 return useSuspenseQuery (
@@ -115,7 +115,7 @@ function useSuspenseQueryFactory<T extends Record<string, any>>(
115115}
116116
117117function queryOptionsFactory < T extends Record < string , any > > (
118- client : Record < string , ClientRequest < any > >
118+ client : Record < string , ClientRequest < any , any , any > >
119119) : HonoQueryOptions < T > {
120120 return ( path , method , honoPayload , hookOptions ) => {
121121 const paths = [ ...path . toString ( ) . split ( '/' ) . filter ( Boolean ) , method . toString ( ) ]
@@ -140,7 +140,7 @@ function queryOptionsFactory<T extends Record<string, any>>(
140140}
141141
142142function suspenseQueryOptionsFactory < T extends Record < string , any > > (
143- client : Record < string , ClientRequest < any > >
143+ client : Record < string , ClientRequest < any , any , any > >
144144) : HonoSuspenseQueryOptions < T > {
145145 return ( path , method , honoPayload , hookOptions ) => {
146146 const paths = [ ...path . toString ( ) . split ( '/' ) . filter ( Boolean ) , method . toString ( ) ]
@@ -165,7 +165,7 @@ function suspenseQueryOptionsFactory<T extends Record<string, any>>(
165165}
166166
167167function useMutationFactory < T extends Record < string , any > > (
168- client : Record < string , ClientRequest < any > >
168+ client : Record < string , ClientRequest < any , any , any > >
169169) : UseHonoMutation < T > {
170170 return ( ( path , method , honoOptions , hookOptions ) => {
171171 return useMutation (
@@ -175,7 +175,7 @@ function useMutationFactory<T extends Record<string, any>>(
175175}
176176
177177function mutationOptionsFactory < T extends Record < string , any > > (
178- client : Record < string , ClientRequest < any > >
178+ client : Record < string , ClientRequest < any , any , any > >
179179) : HonoMutationOptions < T > {
180180 return ( ( path , method , honoOptions , hookOptions ) => {
181181 const paths = [ ...path . toString ( ) . split ( '/' ) . filter ( Boolean ) , method . toString ( ) ]
0 commit comments