ts-data-forge
Version:
[](https://www.npmjs.com/package/ts-data-forge) [](https://www.npmjs.com/package/ts-data-forge) [ => Mutable<T>;
/**
* Casts a readonly type `T` to its `DeepMutable<T>` equivalent, recursively
* removing all readonly modifiers.
*
* **⚠️ Safety Warning**: This recursively bypasses ALL immutability guarantees
* in nested structures. Extremely dangerous for complex data structures as it
* allows mutation at any depth. The runtime value is unchanged - only
* TypeScript's type checking is affected.
*
* @template T - The type of the deeply readonly value
* @param readonlyValue - The deeply readonly value to cast to deeply mutable
* @returns The same value with all readonly modifiers recursively removed from
* its type
* @see castMutable - For shallow mutability casting
* @see castDeepReadonly - For the opposite operation
* @see structuredClone - Recommended for creating safe copies before mutation
*/
export declare const castDeepMutable: <T>(readonlyValue: T) => DeepMutable<T>;
//# sourceMappingURL=cast-mutable.d.mts.map