• Fetches JSON responses while reusing fetchWithTimeout.

    Type Parameters

    • T = unknown

    Parameters

    • url: string | URL

      Request URL or URL object to fetch

    • options: FetchWithTimeoutOptions = {}

      Optional request options including timeout, label, and signal

    Returns Promise<T>

    Parsed JSON response body