paginated_result.d.ts 549 B

12345678910111213141516
  1. import { PaginatedResult as PaginatedResultInterface } from "../interfaces/paginated_result";
  2. import { Keyable } from "../interfaces/keyable";
  3. export declare class PaginatedResult implements PaginatedResultInterface {
  4. totalResults: number;
  5. totalPages: number;
  6. resultsPerPage: number;
  7. currentPage: number;
  8. items: any[];
  9. constructor(items: any[], headers: Keyable);
  10. hasNextPage(): boolean;
  11. hasPrevPage(): boolean;
  12. isLastPage(): boolean;
  13. isFirstPage(): boolean;
  14. nextPage(): number;
  15. prevPage(): number;
  16. }