Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

438 B
Raw Blame
import { PaginationResultInterface } from './pagination.results.interface'

export class Pagination<PaginationEntity> {
  public results: PaginationEntity[]

  public page_total: number

  public total: number

  constructor(paginationResults: PaginationResultInterface<PaginationEntity>) {
    this.results = paginationResults.results
    this.page_total = paginationResults.results.length
    this.total = paginationResults.total
  }
}