refactor(core): add generic utilities for resolving value-or-function patterns, replace specialized resolveStaleTime
and resolveEnabled
#9758
Triggered via pull request
September 16, 2025 23:55
Status
Failure
Total duration
3m 44s
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 '{ data: unknown; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; ... 14 more ...; promise: Promise<...>; } | ... 4 more ... | { ...; }' is not assignable to parameter of type 'UseQueryResult<number>'.
|
Test
Type 'unknown' is not assignable to type 'string | Element'.
|
Test
Argument of type '{ data: unknown; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; ... 14 more ...; promise: Promise<...>; } | { ...; }' is not assignable to parameter of type 'DefinedUseQueryResult<number>'.
|
Test
Argument of type '{ data: unknown; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; dataUpdatedAt: number; ... 14 more ...; promise: Promise<...>; } | ... 4 more ... | { ...; }' is not assignable to parameter of type 'UseQueryResult<number>'.
|
Test
Argument of type 'Updater<NoInfer<TInferredQueryFnData> | undefined, NoInfer<TInferredQueryFnData> | undefined>' is not assignable to parameter of type 'Updater<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<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)'.
|