@nevware21/tripwire - v0.1.4
    Preparing search index...

    Function useScope

    Export the functions (and global assert)

    • Executes a callback function with the specified scope context set as the global scope. The previous global scope context is automatically restored after the callback completes.

      Type Parameters

      • T

      Parameters

      • scope: IScopeContext

        The scope context to set as global during callback execution

      • callback: () => T

        The function to execute with the scope context set

      Returns T

      The return value of the callback function

      0.1.3