Mutates the type by removing the optional modifier (?) from all properties.
?
The type to mutate.
type Original = { readonly name?: string; age?: number };type Mutated = MutableRequired<Original>; // { readonly name: string; age: number } Copy
type Original = { readonly name?: string; age?: number };type Mutated = MutableRequired<Original>; // { readonly name: string; age: number }
Mutates the type by removing the optional modifier (
?
) from all properties.