Skip to content

Commit 6b8cf8e

Browse files
TkDodomanudeli
andauthored
Update packages/query-core/src/types.ts
Co-authored-by: Jonghyeon Ko <[email protected]>
1 parent 70e3f17 commit 6b8cf8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/query-core/src/types.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ import type { QueryFilters, QueryTypeFilter, SkipToken } from './utils'
99
import type { QueryCache } from './queryCache'
1010
import type { MutationCache } from './mutationCache'
1111

12-
export type DistributiveOmit<TObject, TKey> = TObject extends any
13-
? Pick<TObject, Exclude<keyof TObject, TKey>>
14-
: never
12+
export type DistributiveOmit<
13+
TObject,
14+
TKey extends keyof TObject,
15+
> = TObject extends any ? Omit<TObject, TKey> : never
1516

1617
export type OmitKeyof<
1718
TObject,

0 commit comments

Comments
 (0)