refactor(core): add generic utilities for resolving value-or-function patterns, replace specialized resolveStaleTime
and resolveEnabled
#9760
Annotations
10 errors
Run Checks
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Run Checks
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Run Checks
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Run Checks
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Run Checks
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Run Checks
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Run Checks
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Run Checks
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Run Checks
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Run Checks
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Loading