@covalenthq/client-sdk
Version:
<div align="center"> <a href="https://goldrush.dev/products/goldrush/" target="_blank" rel="noopener noreferrer"> <img alt="GoldRush TS SDK Logo" src="./repo-static/ts-sdk-banner.png" style="max-width: 100%;"/> </a> </div>
8 lines (7 loc) • 486 B
TypeScript
import { type GoldRushResponse, type Nullable, type Pagination, type PaginationLinks } from "../types/Generic.types";
import { type Execution } from "./execution";
export declare function paginateEndpoint<T extends Nullable<{
pagination: Pagination;
}> | Nullable<{
links: PaginationLinks;
}> | null>(endpoint: URL, execution: Execution, parseData: (data: GoldRushResponse<T>) => GoldRushResponse<T>, implementation: "pagination" | "links"): AsyncIterable<GoldRushResponse<T>>;