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