diff --git a/types/react-query/index.d.ts b/types/react-query/index.d.ts index 2664dd35de..e8c79b24e7 100644 --- a/types/react-query/index.d.ts +++ b/types/react-query/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/tannerlinsley/react-query // Definitions by: Lukasz Fiszer // Jace Hensley +// Matteo Frana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { ComponentType } from 'react'; @@ -31,9 +32,12 @@ export interface QueryOptions { staleTime?: number; cacheTime?: number; refetchInterval?: false | number; + refetchIntervalInBackground?: boolean; + refetchOnWindowFocus?: boolean; onError?: (err: any) => void; onSuccess?: (data: TResult) => void; suspense?: boolean; + initialData?: TResult; } export interface QueryOptionsPaginated extends QueryOptions {