@webdeveric/utils
    Preparing search index...

    Type Alias RetainMutability<Type, Property>

    RetainMutability: Property extends keyof Type
        ? IsReadonlyKey<Type, Property> extends true ? false : true
        : false

    Whether redefining Property on Type should keep the property mutable when the new attribute doesn't say either way. This mirrors Object.defineProperty(), which keeps a property's existing writable flag when it isn't part of the new descriptor and the property already exists.

    Type Parameters

    • Type
    • Property extends PropertyKey