Mutable
Mutable<T> = { -readonly [P in keyof T]: T[P] }Source: common.ts:298
Makes all properties mutable (removes readonly)
Type Parameters
T— Object type
Example
CODE
interface Config {
readonly apiKey: string
readonly endpoint: string
}
type MutableConfig = Mutable<Config>
// { apiKey: string; endpoint: string }