diff --git a/types/index.d.ts b/types/index.d.ts index 02897a3008..cb23e40c44 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -667,10 +667,10 @@ export interface QueryCache { config?: PrefetchQueryOptions }): Promise - getQueryData(key: AnyQueryKey | string): unknown | undefined - setQueryData( + getQueryData(key: AnyQueryKey | string): T | undefined + setQueryData( key: AnyQueryKey | string, - dataOrUpdater: unknown | ((oldData: unknown | undefined) => unknown) + dataOrUpdater: T | ((oldData: T | undefined) => T) ): void refetchQueries( queryKeyOrPredicateFn: