• Call a function without creating a dependency on any signals it reads. (Like Signal.peek, but for any function with any arguments.)

    You can also pass in any arguments the function takes, and the function's return value is returned.

    (Note: Typed overloads are not supported: TypeScript will use the function's last overload for argument-typing purposes. If you need to call a function with a specific overload, wrap the function with action() instead, and then TypeScript will be able to detect which overload you're using.)

    Type Parameters

    Parameters

    • fn: F
    • Rest ...args: Parameters<F>

    Returns ReturnType<F>

    The result of calling fn(..args)