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 c64a5ea commit 64b0510Copy full SHA for 64b0510
packages/query-core/src/utils.ts
@@ -132,14 +132,11 @@ type NonFunction =
132
| undefined
133
| object
134
135
-export function resolveOption<
136
- T extends NonFunction,
137
- TArgs extends Array<any>
138
->(
+export function resolveOption<T extends NonFunction, TArgs extends Array<any>>(
139
value: T | ((...args: TArgs) => T),
140
...args: TArgs
141
): T {
142
- return typeof value === 'function' ? value(...args) : value
+ return typeof value === 'function' ? value(...args) : value
143
}
144
145
export function functionalUpdate<TInput, TOutput extends NonFunction>(
0 commit comments