Type alias ReplaceDeepWithinObject<T, TCondition, TValue>

ReplaceDeepWithinObject<T, TCondition, TValue>: {
    [K in keyof T]: ReplaceDeep<T[K], TCondition, TValue>
}

ReplaceDeepWithinObject<T, TCondition, TValue> Applies ReplaceDeep to each property of an object type T.

See SpreadDeepObject for more details on recursive behavior.

Typically used when the condition also applies to the outer object type, but you need to replace values within the object.

Type Parameters

  • T extends object

    An object type.

  • TCondition

    The condition for replacement.

  • TValue

    The type to replace with.

Returns

An object type with modified properties as per ReplaceDeep.

Generated using TypeDoc