Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility for getting paginated responses from the API.

Type parameters

  • Type

Hierarchy

  • Paginator

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

getPage

getPage: (params: Record<string, any>) => Promise<PaginatedResponse<Type>>

Type declaration

lastPage

lastPage: number

nextPageDone

nextPageDone: boolean

Methods

nextPage

  • nextPage(): Promise<Type[]>
  • Utility to get the next page.

    Note that calls to getPage will not change the next page that this gets. Once all pages have been gotten, this will return an empty array (but won't invoke the API).

    Returns Promise<Type[]>

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property

Generated using TypeDoc