PaginatedList[A: Any val]¶
A page of results from a paginated GitHub API endpoint. Use
prev_page() and next_page() to navigate between pages; each
returns a Promise for the adjacent page, or None if no such page
exists.
Public fields¶
let results: Array[A] val¶
Public Functions¶
prev_page¶
Fetches the previous page, or returns None if on the first page.
Returns¶
- (Promise[(PaginatedList[A] val | RequestError val)] tag | None val)
next_page¶
Fetches the next page, or returns None if on the last page.
Returns¶
- (Promise[(PaginatedList[A] val | RequestError val)] tag | None val)