rozod
    Preparing search index...

    Function fetchApiPages

    • Param Returns

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

      endpoint The endpoint to fetch. initialParams The initial parameters to use for the endpoint. requestOptions The options to use when making requests. limit The maximum number of pages to fetch. An array of all results.

      Type Parameters

      Parameters

      • endpoint: S
      • initialParams: ExtractParams<S>
      • OptionalrequestOptions: RequestOptions<boolean>
      • limit: number = 1000

      Returns Promise<AnyError | ExtractResponse<S>[]>