refactor(core): add generic utilities for resolving value-or-function patterns, replace specialized resolveStaleTime
and resolveEnabled
#9760
Triggered via pull request
September 17, 2025 00:41
Status
Failure
Total duration
2m 16s
Artifacts
–
Annotations
15 errors
Preview
Process completed with exit code 130.
|
Preview
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Preview
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Preview
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Preview
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Test
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Test
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Test
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Test
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Test
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Test
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Test
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|
Test
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NonFunction>'.
|
Test
Type 'NonFunction' is not assignable to type 'TData | undefined'.
|
Test
Argument of type 'TData | InitialDataFunction<TData> | undefined' is not assignable to parameter of type 'NonFunction | (() => NonFunction)'.
|