DeepMutable
Category
Object Operation
Make every parameter of an object - and its sub-objects recursively - mutable.
Usage
ts
import type { DeepMutable } from '@utype/core'
type Props = {
readonly x: {
readonly a: 1
readonly b: 'hi'
},
readonly y: 'hey'
}
// Expect: {
// x: {
// a: 1,
// b: 'hi'
// }
// y: 'hey'
// }
type DeepMutableProps = DeepMutable<Props>