Transforms a JSON-compatible type T such that top-level properties remain mutable if they were before, but nested arrays or basic objects become read-only.
T
Warning: This does not fully guarantee immutability. See ReadonlyDeep for more details.
ReadonlyDeep
Transforms a JSON-compatible type
T
such that top-level properties remain mutable if they were before, but nested arrays or basic objects become read-only.Warning: This does not fully guarantee immutability. See
ReadonlyDeep
for more details.