Options
All
  • Public
  • Public/Protected
  • All
Menu

Pagination helper interface.

Type parameters

  • T

    The item type.

Hierarchy

  • Paginator

Implemented by

Index

Properties

hasNextPage

hasNextPage: boolean

Indicates the existence of the next page.

hasPrevPage

hasPrevPage: boolean

Indicates the existence of the previous page.

items

items: T[]

Array of elements of type T on the current page.

Methods

nextPage

  • Request next page. Does not modify the existing object.

    Returns Promise<Paginator<T>>

prevPage

  • Request previous page. Does not modify the existing object.

    Returns Promise<Paginator<T>>