@trpc/tanstack-react-query 11.0.0-rc.808 → 11.0.0-rc.817

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.
@@ -1,5 +1,4 @@
1
- import type { QueryClient } from '@tanstack/react-query';
2
- import { skipToken } from '@tanstack/react-query';
1
+ import { skipToken, type QueryClient } from '@tanstack/react-query';
3
2
  import { isFunction, isObject } from '@trpc/server/unstable-core-do-not-import';
4
3
  import type {
5
4
  QueryType,
@@ -83,8 +82,8 @@ export async function buildQueryFromAsyncIterable(
83
82
  */
84
83
  export function getQueryKeyInternal(
85
84
  path: readonly string[],
86
- input: unknown,
87
- type: QueryType,
85
+ input?: unknown,
86
+ type?: QueryType,
88
87
  ): TRPCQueryKey {
89
88
  // Construct a query key that is easy to destructure and flexible for
90
89
  // partial selecting etc.
@@ -119,6 +118,7 @@ export function getQueryKeyInternal(
119
118
  },
120
119
  ];
121
120
  }
121
+
122
122
  return [
123
123
  splitPath,
124
124
  {