@creatorem/next-trpc 1.0.8 → 1.0.9

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.
@@ -3,7 +3,7 @@ import { type EndpointClient, createTrpcClientOptions } from "./create-trpc-clie
3
3
  import type { Router, Endpoint, router } from "./core";
4
4
  type TrpcClientWithQuery<R extends Router<any>> = {
5
5
  [K in keyof R]: R[K] extends Endpoint<infer Output, infer Input, any> ? EndpointClient<Input, Output> & {
6
- useQuery: (queryOptions?: Omit<Parameters<typeof useQueryType>[0], "queryKey" | "queryFn">) => ReturnType<typeof useQueryType<Promise<Output>, Error, Promise<Output>, string[]>>;
6
+ useQuery: (queryOptions?: Omit<Parameters<typeof useQueryType>[0], "queryKey" | "queryFn">) => ReturnType<typeof useQueryType<Output, Error, Output, string[]>>;
7
7
  } : never;
8
8
  };
9
9
  export declare const createTrpcQueryClient: <R extends ReturnType<typeof router<any, Router<any>>>>(opts: createTrpcClientOptions & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creatorem/next-trpc",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/creatorem/next-trpc"