From 2a29f33352f688dc028f6756856ba64a11aacf9e Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 15 Nov 2022 13:33:04 -0800 Subject: [PATCH] Remove required generic for query options --- src/renderer/lib/react-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/lib/react-query.ts b/src/renderer/lib/react-query.ts index 387596b1..49716391 100644 --- a/src/renderer/lib/react-query.ts +++ b/src/renderer/lib/react-query.ts @@ -57,7 +57,7 @@ export type QueryOptions = { cacheTime?: UseQueryOptions['cacheTime']; enabled?: UseQueryOptions['enabled']; onError?: (err: any) => void; - onSuccess?: (data: TResponse) => void; + onSuccess?: (data: any) => void; refetchInterval?: number; refetchIntervalInBackground?: UseQueryOptions['refetchIntervalInBackground']; refetchOnWindowFocus?: boolean;