Type Alias DeepImmutable<T>

DeepImmutable<T>: T extends Primitive
    ? T
    : T extends (infer U)[]
        ? DeepImmutableArray<U>
        : DeepImmutableObject<T>

Type modifier to make all the properties of an object Readonly recursively

Type Parameters

  • T