augment-vir - v32.2.2
    Preparing search index...

    Type Alias Writable<BaseType, Keys>

    Writable: BaseType extends ReadonlyMap<infer KeyType, infer ValueType>
        ? Map<KeyType, ValueType>
        : BaseType extends ReadonlySet<infer ItemType>
            ? Set<ItemType>
            : BaseType extends readonly unknown[]
                ? WritableArray<BaseType>
                : Simplify<
                    Except<BaseType, Keys> & {
                        -readonly [KeyType in keyof Pick<BaseType, Keys>]: Pick<
                            BaseType,
                            Keys,
                        >[KeyType]
                    },
                >

    Create a type that strips readonly from the given type. Inverse of Readonly<T>.

    Copied from the Writable type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters