PaginatorIteration
type PaginatorIteration<T> = object;Defined in: pagination.ts:149
Auto-walking iteration, shared by every paginator tier.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Properties
Section titled “Properties”items: (input) => AsyncGenerator<T>;Defined in: pagination.ts:157
Like pages, but flattened: yields every item across all pages.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
PaginationInput |
Returns
Section titled “Returns”AsyncGenerator<T>
pages: (input) => AsyncGenerator<Paginated<T>>;Defined in: pagination.ts:155
Walk every page from input until exhausted, fetching lazily. Cursor
inputs follow endCursor (or startCursor when direction is
"backward"); page/offset inputs advance the offset.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
PaginationInput |
Returns
Section titled “Returns”AsyncGenerator<Paginated<T>>