zeed
    Preparing search index...

    Function fetchJson

    • Fetch and parse JSON. Returns the parsed JSON object or undefined on error.

      Type Parameters

      Parameters

      • url: string | URL
      • fetchOptions: fetchOptionsType = {}
      • fetchFn: (input: RequestInfo, init?: RequestInit) => Promise<Response> = fetch

      Returns Promise<T | undefined>