SetOptional
Type Alias: SetOptional<T, K>
SetOptional<
T,K> =Omit<T,K> &Partial<Pick<T,K>>
Defined in: packages/utils/src/types.ts:229
Make a specific subset of keys K optional while keeping all other properties of T required.
Type Parameters
T
T
K
K extends keyof T
See
https://github.com/sindresorhus/type-fest for a more complete collection of utility types.