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.
WithRequired
1 parent 684ed14 commit 456e5eeCopy full SHA for 456e5ee
packages/query-core/src/types.ts
@@ -263,8 +263,8 @@ export interface QueryObserverOptions<
263
_optimisticResults?: 'optimistic' | 'isRestoring'
264
}
265
266
-export type WithRequired<T, K extends keyof T> = Omit<T, K> &
267
- Required<Pick<T, K>>
+export type WithRequired<T, K extends keyof T> = T & { [_ in K]: {} }
+
268
export type DefaultedQueryObserverOptions<
269
TQueryFnData = unknown,
270
TError = unknown,
0 commit comments