Israeli Bank Importer - v1.44.5
    Preparing search index...

    Function restoreMasked

    • Restores masked secrets in an incoming value from the previous values, so a round-tripped MASK never overwrites a real secret. Only secret-keyed leaves treat the MASK sentinel specially (via the internal restoreMaskedValue).

      Type Parameters

      • T

      Parameters

      • next: T

        Incoming (possibly masked) value from the UI.

      • prev: unknown

        Previous stored value to restore from.

      Returns T

      next with MASK secrets replaced by prev's values.