1- type queryFunctionContext
2- type queryKey
3-
4- type timeValue
5- type boolOrAlwaysValue
6- type refetchIntervalValue
7- type notifyOnChangePropsValue
8- type retryValue <'queryError >
9- type retryDelayValue <'queryError >
10-
11- type retryParam <'queryError > = [#bool (bool ) | #number (int ) | #fn ((int , 'queryError ) => bool )]
12- type retryDelayParam <'queryError > = [#number (int ) | #fn ((int , 'queryError ) => int )]
13- type time = [#number (int ) | #infinity ]
14- type refetchInterval = [#bool (bool ) | #number (int )]
15- type boolOrAlways = [#bool (bool ) | #always ]
16- type notifyOnChangeProps = [#array (array <string >) | #tracked ]
17-
18- type queryStatus = [#loading | #success | #idle | #error | #initialData ]
19-
201type refetchOptions = {
212 throwOnError : bool ,
223 cancelRefetch : bool ,
@@ -25,19 +6,19 @@ type refetchOptions = {
256@deriving (abstract )
267type queryOptions <'queryKey , 'queryData , 'queryError > = {
278 @optional queryKey : 'queryKey ,
28- @optional queryFn : queryFunctionContext => Js .Promise .t <'queryData >,
9+ @optional queryFn : ReactQuery_Types . queryFunctionContext => Js .Promise .t <'queryData >,
2910 @optional enabled : bool ,
30- @optional retry : retryValue <'queryError >,
11+ @optional retry : ReactQuery_Types . retryValue <'queryError >,
3112 @optional retryOnMount : bool ,
32- @optional retryDelay : retryDelayValue <'queryError >,
33- @optional staleTime : timeValue ,
34- @optional queryKeyHashFn : queryKey => string ,
35- @optional refetchInterval : refetchIntervalValue ,
13+ @optional retryDelay : ReactQuery_Types . retryDelayValue <'queryError >,
14+ @optional staleTime : ReactQuery_Types . timeValue ,
15+ @optional queryKeyHashFn : ' queryKey => string ,
16+ @optional refetchInterval : ReactQuery_Types . refetchIntervalValue ,
3617 @optional refetchIntervalInBackground : bool ,
37- @optional refetchOnMount : boolOrAlwaysValue ,
38- @optional refetchOnWindowFocus : boolOrAlwaysValue ,
39- @optional refetchOnReconnect : boolOrAlwaysValue ,
40- @optional notifyOnChangeProps : notifyOnChangePropsValue ,
18+ @optional refetchOnMount : ReactQuery_Types . boolOrAlwaysValue ,
19+ @optional refetchOnWindowFocus : ReactQuery_Types . boolOrAlwaysValue ,
20+ @optional refetchOnReconnect : ReactQuery_Types . boolOrAlwaysValue ,
21+ @optional notifyOnChangeProps : ReactQuery_Types . notifyOnChangePropsValue ,
4122 @optional notifyOnChangePropsExclusions : array <string >,
4223 @optional onSuccess : 'queryData => unit ,
4324 @optional onError : 'queryError => unit ,
@@ -53,7 +34,7 @@ type queryOptions<'queryKey, 'queryData, 'queryError> = {
5334}
5435
5536type rec queryResult <'queryError , 'queryData > = {
56- status : queryStatus ,
37+ status : ReactQuery_Types . queryStatus ,
5738 isIdle : bool ,
5839 isError : bool ,
5940 isFetched : bool ,
0 commit comments