Home > @infiniteobjects/type-utils > SetOptional
Warning: This API is now obsolete.
Use
SetOptionalKeys
instead.
Create a type that makes the given keys optional. The remaining keys are kept as is. The sister of the SetRequired
type.
Signature:
export type SetOptional<BaseType, Keys extends keyof BaseType> = SetOptionalKeys<BaseType, Keys>;
References: SetOptionalKeys