Recursively removes the ? optional modifier from all properties of an object or array.
Handles Map and Set types by applying DeepRequired to their keys/values.
Primitives and functions are returned as is.
Type Parameters
T
The type to make deeply required.
Returns
A new type with all nested properties marked as required.
Recursively removes the
?optional modifier from all properties of an object or array. Handles Map and Set types by applyingDeepRequiredto their keys/values. Primitives and functions are returned as is.