@dxos/client
    Preparing search index...

    Type Alias Mutable<T>

    Mutable: T extends | string
    | number
    | boolean
    | bigint
    | symbol
    | null
    | undefined
        ? T
        : T extends { "[RefTypeId]": any }
            ? T
            : T extends object
                ? T extends readonly (infer U)[]
                    ? Entity.Mutable<U>[]
                    : { -readonly [K in keyof T]: Entity.Mutable<T[K]> }
                : T

    Deeply removes readonly modifiers from all properties of T. Inside Obj.change, all properties are fully mutable regardless of schema definition. Ref types are preserved as-is since they are value-like objects that are replaced, not mutated. Primitive types (including branded primitives) are preserved as-is.

    Type Parameters

    • T