The endpoint to fetch from.
The parameters to pass to the endpoint.
Optional
max: Partial<{The maximum number of items to pass to the endpoint.
A function that accepts the endpoint response and transforms it into the desired type.
Optional
requestOptions: RequestOptions<boolean>Any additional options to pass to fetch.
The transformed response from the endpoint.
Fetches the data from the given endpoint, but splits the request into multiple requests if the specified parameter is larger than max specified.