vinmonopolet-ts
Version:
Extracts information on products, categories and stores from Vinmonopolet
37 lines (36 loc) • 840 B
TypeScript
declare class Pagination<T> {
/**
* The current page of the results.
*/
currentPage: number;
/**
* The number of results in each page.
*/
pageSize: number;
/**
* The total number of pages in the response.
*/
totalPages: number;
/**
* The total number of items in the response.
*/
totalResults: number;
/**
* Is true if there are more pages.
*/
hasNext: boolean;
/**
* Is true if there previous pages.
*/
hasPrevious: boolean;
/**
* A string of the sort options used.
*/
sort: string;
private fetcher;
private options;
constructor(paging: any, options: any, fetcher: () => Promise<T>);
next(): Promise<T>;
previous(): Promise<T>;
}
export default Pagination;