Skip to content

Commit 617c758

Browse files
committed
refactor: make isDataEqual type more specific
1 parent 06833ba commit 617c758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface QueryOptions<
5454
retry?: RetryValue<TError>
5555
retryDelay?: RetryDelayValue
5656
cacheTime?: number
57-
isDataEqual?: (oldData: unknown, newData: unknown) => boolean
57+
isDataEqual?: (oldData: TData | undefined, newData: TData) => boolean
5858
queryFn?: QueryFunction<TQueryFnData>
5959
queryHash?: string
6060
queryKey?: QueryKey

0 commit comments

Comments
 (0)