ethers.js/src.ts/providers/pagination.ts
2022-09-05 16:14:43 -04:00

9 lines
218 B
TypeScript

export interface PaginationResult<R> extends Array<R> {
next(): Promise<PaginationResult<R>>;
// The total number of results available or null if unknown
totalResults: null | number;
done: boolean;
}