Skip to content

PaginatorCursorOptionsSync

type PaginatorCursorOptionsSync<T, TCursor> = object;

Defined in: pagination.ts:97

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

Defined in: pagination.ts:101

Token codec. Default: createCursorCodec() (JSON + base64url, sync).


fromItem: (item) => TCursor;

Defined in: pagination.ts:99

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

Parameter Type
item T

TCursor