Library API
    Preparing search index...

    Function ephemeral

    • Runs a callback with a temporary proxy that is revoked after execution completes.

      Type Parameters

      • T extends object
      • R

      Parameters

      • target: T

        The object to expose through the temporary proxy

      • fn: (scoped: T) => R

        The callback that receives the temporary proxy

      • options: ProxyOptions = {}

        Configuration options for proxy behavior

      Returns R

      The callback's result