Type Alias DeepMutable<T>

DeepMutable<T>: T extends readonly any[]
    ? DeepMutableTupleOrArray<T>
    : T extends Fun | Blob
        ? T
        : T extends ReadonlyDate
            ? Date
            : T extends ReadonlyMap<infer K, infer V>
                ? DeepMutableMap<K, V>
                : T extends ReadonlySet<infer V>
                    ? DeepMutableSet<V>
                    : T extends object
                        ? DeepMutableObject<T>
                        : T

Recursively removes read only modifiers. Special core types such as read only Dates, Maps, and Sets will be converted to their writable variants.

Type Parameters

  • T