new
Paginator(paginationOpts?: PaginationOptions)
fromSubset<T>(coll: T[],totalElements: number,): Paginated<T>
readonly
DEFAULT_PAGINATION_OPTS
fromAll<T>(coll: T[],unnamed 1: PaginationOptions,): Paginated<T>
fromSubset<T>(): Paginated<T>
For cases where the input data has already been sliced according to the pagination options, e.g. using a DB query