Skip to content
v2.274.0

PropertyMergeStrategy Class ​

Strategy for handling nested properties in L1 property mixins.

Methods ​

combine(options?: CombineStrategyOptions): IMergeStrategy@staticmethod def combine(options: typing.Optional[CombineStrategyOptions] = None) -> IMergeStrategypublic static IMergeStrategy combine(CombineStrategyOptions options)public static IMergeStrategy Combine(CombineStrategyOptions? options = null)func Combine(Options CombineStrategyOptions) IMergeStrategystatic#
Deep merges nested objects from source into target.
notes

When both the existing and new value for a key are plain objects, their properties are merged recursively. Primitives, arrays, and mismatched types are overridden by the source value.

Supports Box-backed values: when the target value is a Box, the merge is deferred until the Box resolves.

override(): IMergeStrategy@staticmethod def override() -> IMergeStrategypublic static IMergeStrategy override()public static IMergeStrategy Override()func Override() IMergeStrategystatic#
Replaces existing property values on the target with the values from the source.

Each allowed key is copied from source to target as-is, without inspecting nested objects. Any previous value on the target is discarded.