Type alias ReplaceDeepObject<T, TCondition, TValue>

ReplaceDeepObject<T, TCondition, TValue>: RecursiveObjectModification<T, TCondition, TValue, "replace">

ReplaceDeepObject<T, TCondition, TValue> Recursively replaces objects in T that match TCondition with TValue.

See SpreadDeepObject for more details on recursive behavior.

Type Parameters

  • T

    The type to be modified.

  • TCondition extends Record<string, any>

    The condition used to identify which objects in T should be replaced.

  • TValue extends Record<string, any>

    The type to replace the matching objects with.

Returns

The modified type with objects replaced as specified.

Generated using TypeDoc