Skip to content

Paginator

type Paginator<T> = PaginatorIteration<T> & object;

Defined in: pagination.ts:170

Paginator with possibly-async fetchers and a sync codec: paginate may return a Promise, but cursor tokens are always synchronous.

Type Parameter
T
Name Type Description Defined in
cursorFor() (item) => string Encode the cursor token for an item. Throws without cursor config. pagination.ts:174
paginate() (input) => MaybePromise<Paginated<T>> Run any pagination request against the configured fetchers. pagination.ts:172