Mutable
Writable counterpart of a value: readonly is removed at every depth.
Writable counterpart of a value: readonly is removed at every depth. Used for the raw results
of unwrap and snapshot, because inference from a Store type yields a readonly shape.
Import#
ts
import type { Mutable } from "@shadow-js/core";
Signature#
ts
type Mutable<T> = T extends Opaque ? T : { -readonly [K in keyof T]: Mutable<T[K]> }