@karmaniverous/jeeves
    Preparing search index...

    Function fetchJson

    • Fetch JSON from a URL, throwing on non-OK responses.

      Parameters

      • url: string

        URL to fetch.

      • Optionalinit: RequestInit

        Optional fetch init options. A signal here is used as-is and replaces the default timeout.

      • options: FetchJsonOptions = {}

        Per-call options (timeoutMs).

      Returns Promise<unknown>

      Parsed JSON response body.

      Error with HTTP {status}: {body} message on non-OK responses.

      The abort error when the timeout (or the caller's signal) fires.