Library API
    Preparing search index...

    Function secureRef

    • Wraps an object in a protective Proxy that allows extension (adding new keys) but prevents modification or deletion of existing keys.

      Type Parameters

      • T extends object

      Parameters

      • target: T

        The object to secure

      Returns T

      The append-only secured Proxy

      const ref = secureRef({ initial: 1 });