paginated_result.d.ts 369 B

12345678910111213
  1. export interface PaginatedResult<T = any> {
  2. readonly totalResults: number;
  3. readonly totalPages: number;
  4. readonly resultsPerPage: number;
  5. readonly currentPage: number;
  6. readonly items: T[];
  7. hasNextPage(): boolean;
  8. hasPrevPage(): boolean;
  9. isLastPage(): boolean;
  10. isFirstPage(): boolean;
  11. nextPage(): number;
  12. prevPage(): number;
  13. }