Skip to content

PaginatorCursorOptions

type PaginatorCursorOptions<T, TCursor> = object;

Defined in: pagination.ts:104

Type Parameter
T
TCursor extends Record<string, unknown>
codec?: CursorCodecMaybeAsync<TCursor>;

Defined in: pagination.ts:108

Token codec, possibly with async stages.


fromItem: (item) => TCursor;

Defined in: pagination.ts:106

Extract the cursor data for an item (e.g. (u) => ({ id: u.id })).

Parameter Type
item T

TCursor