qfetch
    Preparing search index...
    ResponseErrorMapper: (response: Response) => unknown | Promise<unknown>

    Function that creates an error from a response. Can be sync or async to allow reading response body.

    Type Declaration

      • (response: Response): unknown | Promise<unknown>
      • Parameters

        • response: Response

          The fetch response that triggered the error

        Returns unknown | Promise<unknown>

        The error to throw, or a Promise resolving to the error