Names the values equals, immutable and seal take whole rather than descending into them: a
Primitive, a function, and the built-in objects a value graph commonly holds. DeepReadonly and
DeepPartial branch on the same set, so what a type promises about a structure and what the operations do
with it agree.
Warning
Membership is decided at run time by Object.getPrototypeOf(value) === Object.prototype, a test with no
type-level counterpart: a class instance is structurally indistinguishable from a record, so it is taken whole at
run time while DeepReadonly and DeepPartial still map it property by property. Model such a value
as one of the members listed below, or expect the two levels to disagree about it.
A value treated as atomic by the deep operations.
Names the values equals, immutable and seal take whole rather than descending into them: a Primitive, a function, and the built-in objects a value graph commonly holds. DeepReadonly and DeepPartial branch on the same set, so what a type promises about a structure and what the operations do with it agree.
Membership is decided at run time by
Object.getPrototypeOf(value) === Object.prototype, a test with no type-level counterpart: a class instance is structurally indistinguishable from a record, so it is taken whole at run time while DeepReadonly and DeepPartial still map it property by property. Model such a value as one of the members listed below, or expect the two levels to disagree about it.