For an object T, if it has any properties that are a union with undefined, make those into
optional properties instead.
Copied from the internal UndefinedToOptional type in the type-fest package so that this
package's public types do not depend on type-fest (see the note in type-checks.ts).
For an object
T, if it has any properties that are a union withundefined, make those into optional properties instead.Copied from the internal
UndefinedToOptionaltype in thetype-festpackage so that this package's public types do not depend ontype-fest(see the note intype-checks.ts).