export const MAX_ITEMS_PER_PAGE = 30 ; export class Pagination < PaginationObject > { public readonly pageCount : number ; constructor ( public readonly items , public readonly totalItems ) { this . pageCount = Math . ceil ( this . totalItems / MAX_ITEMS_PER_PAGE ) ; } }