Creates a Partial type. If keysToBeOptional is set, only those keys are optional, otherwise, all properties are optional.
Optional
Creates a Partial type. If keysToBeOptional is set, only those keys are optional, otherwise, all properties are optional.