( resolver: T | Resolver<TInput, TResult> | RpcClient<TInput, TResult>, ...params: [TInput] | [] )
| 128 | } |
| 129 | |
| 130 | export function getQueryKey<TInput, TResult, T extends AsyncFunc>( |
| 131 | resolver: T | Resolver<TInput, TResult> | RpcClient<TInput, TResult>, |
| 132 | ...params: [TInput] | [] |
| 133 | ) { |
| 134 | if (typeof resolver === "undefined") { |
| 135 | throw new Error("getQueryKey is missing the first argument - it must be a resolver function") |
| 136 | } |
| 137 | |
| 138 | return getQueryKeyFromUrlAndParams(sanitizeQuery(resolver)._routePath, ...params) |
| 139 | } |
| 140 | |
| 141 | export function getInfiniteQueryKey<TInput, TResult, T extends AsyncFunc>( |
| 142 | resolver: T | Resolver<TInput, TResult> | RpcClient<TInput, TResult>, |
no test coverage detected