RequiredNonNullable<T>:T extends object ? Required<{ [P in keyof T]: NonNullable<T[P]> }> : T
Converts a type T that may have optional, nullable properties into a new type with only required
properties, while also subtracting null from all possible property values.
Converts a type
T
that may have optional, nullable properties into a new type with only required properties, while also subtractingnull
from all possible property values.