Type alias ReplaceValues<T, TCondition, TValue>

ReplaceValues<T, TCondition, TValue>: {
    [K in keyof T]: T[K] extends TCondition
        ? TValue
        : T[K]
}

ReplaceValues<T, TCondition, TValue> Replaces the values of type TCondition in T with TValue.

Type Parameters

  • T

    The type to be modified.

  • TCondition

    The condition to match for replacement.

  • TValue

    The type to replace with.

Returns

The modified type.

Generated using TypeDoc