Skip to content

Commit 18ae27b

Browse files
committed
fix(types): wrong inference with select() option
1 parent 7a37c97 commit 18ae27b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export type DecorateProcedure<
5353
> = TProcedure extends AnyQueryProcedure
5454
? {
5555
useQuery: <
56-
TQueryFnData,
56+
TQueryFnData = inferTransformedProcedureOutput<TProcedure>,
5757
TError = TRPCClientErrorLike<TProcedure>,
58-
TData = inferTransformedProcedureOutput<TProcedure>,
58+
TData = TQueryFnData,
5959
TQueryData = TQueryFnData,
6060
TQueryKey extends QueryKey = QueryKey,
6161
>(

0 commit comments

Comments
 (0)