@srpc.org/react-query 0.20.5 → 0.20.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/context.d.ts CHANGED
@@ -82,7 +82,7 @@ import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
82
82
  * };
83
83
  * ```
84
84
  */
85
- type OptionsFactory<Procedure extends ClientProcedure<any>, TInput = Parameters<Procedure>, TOutput = ReturnType<Procedure>> = {
85
+ type OptionsFactory<Procedure extends ClientProcedure<any>, TInput = Parameters<Procedure>, TOutput = Awaited<ReturnType<Procedure>>> = {
86
86
  queryOptions: (...args: Parameters<Procedure>) => UseQueryOptions<TOutput>;
87
87
  mutationOptions: () => UseMutationOptions<TOutput, Error, TInput>;
88
88
  queryKey: (...args: Parameters<Procedure>) => string[];
package/dist/index.d.ts CHANGED
@@ -82,7 +82,7 @@ export { SRPCContextFactory, SRPCContextValue, createSRPCContext } from './conte
82
82
  * };
83
83
  * ```
84
84
  */
85
- type OptionsFactory<Procedure extends ClientProcedure<any>, TInput = Parameters<Procedure>, TOutput = ReturnType<Procedure>> = {
85
+ type OptionsFactory<Procedure extends ClientProcedure<any>, TInput = Parameters<Procedure>, TOutput = Awaited<ReturnType<Procedure>>> = {
86
86
  queryOptions: (...args: Parameters<Procedure>) => UseQueryOptions<TOutput>;
87
87
  mutationOptions: () => UseMutationOptions<TOutput, Error, TInput>;
88
88
  queryKey: (...args: Parameters<Procedure>) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srpc.org/react-query",
3
- "version": "0.20.5",
3
+ "version": "0.20.6",
4
4
  "description": "React Query integration for SRPC - Type-safe RPC with automatic React Query hooks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",