API

Type Alias Immutable<T>

Immutable: T extends Primitive
    ? T
    : T extends (infer U)[] ? ReadonlyArray<U> : DeepImmutable<T>

Type modifier to make all the properties of an object Readonly

Type Parameters

  • T