We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a0b66 commit 3545b41Copy full SHA for 3545b41
packages/query-core/src/utils.ts
@@ -138,14 +138,11 @@ type NonFunction =
138
* const delay = resolveOption(retryDelay, failureCount, error)
139
* ```
140
*/
141
-export function resolveOption<
142
- T extends NonFunction,
143
- TArgs extends Array<any>
144
->(
+export function resolveOption<T extends NonFunction, TArgs extends Array<any>>(
145
value: T | ((...args: TArgs) => T),
146
...args: TArgs
147
): T {
148
- return typeof value === 'function' ? value(...args) : value
+ return typeof value === 'function' ? value(...args) : value
149
}
150
151
export function functionalUpdate<TInput, TOutput extends NonFunction>(
0 commit comments