@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.

      Returns Promise<unknown>

      Parsed JSON response body.

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