@sensimods/utility-lab
    Preparing search index...

    Type Alias DeepReadonly<T>

    DeepReadonly: T extends (infer R)[]
        ? ReadonlyArray<DeepReadonly<R>>
        : T extends Function
            ? T
            : T extends object ? { readonly [K in keyof T]: DeepReadonly<T[K]> } : T

    A utility type that recursively makes all properties of an object and its nested objects readonly.

    Type Parameters

    • T