Utility type that makes properties with undefined values optional.
Transforms properties that allow undefined into truly optional properties,
improving the developer experience by not requiring explicit undefined values.
Type Parameters
T
The type to transform
Example
typeBefore = { name: string; age?: number | undefined } typeAfter = UndefinedOptional<Before> // After = { name: string; age?: number }
Utility type that makes properties with undefined values optional. Transforms properties that allow undefined into truly optional properties, improving the developer experience by not requiring explicit undefined values.