diff --git a/.changeset/tough-turtles-divide.md b/.changeset/tough-turtles-divide.md new file mode 100644 index 0000000..83d7fec --- /dev/null +++ b/.changeset/tough-turtles-divide.md @@ -0,0 +1,5 @@ +--- +'@ssrx/trpc-react-query': patch +--- + +Extend QueryObserverOptions in useQuery diff --git a/packages/trpc-react-query/src/types.ts b/packages/trpc-react-query/src/types.ts index dc14578..f046534 100644 --- a/packages/trpc-react-query/src/types.ts +++ b/packages/trpc-react-query/src/types.ts @@ -5,7 +5,7 @@ import type { MutationOptions, QueryClient, QueryKey, - QueryOptions, + QueryObserverOptions, UseInfiniteQueryOptions, } from '@tanstack/react-query'; import type { TRPCRequestOptions, TRPCUntypedClient } from '@trpc/client'; @@ -57,7 +57,7 @@ export type CreateQueryOptions< TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey, -> = OmitUseless>; +> = OmitUseless>; export type CreateInfiniteQueryOptions< TQueryFnData = unknown,