Function fetchApiPages

  • Fetches all pages of results for the given endpoint and parameters.

    Type Parameters

    Parameters

    • endpoint: S

      The endpoint to fetch.

    • initialParams: ExtractParams<S>

      The initial parameters to use for the endpoint.

    • OptionalrequestOptions: RequestOptions<boolean>

      The options to use when making requests.

    • limit: number = 1000

      The maximum number of pages to fetch.

    Returns Promise<ExtractResponse<S>[]>

    An array of all results.