PaginatorCursorOptionsSync
type PaginatorCursorOptionsSync<T, TCursor> = object;Defined in: pagination.ts:97
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
TCursor extends Record<string, unknown> |
Properties
Section titled “Properties”codec?
Section titled “codec?”codec?: CursorCodec<TCursor>;Defined in: pagination.ts:101
Token codec. Default: createCursorCodec() (JSON + base64url, sync).
fromItem
Section titled “fromItem”fromItem: (item) => TCursor;Defined in: pagination.ts:99
Extract the cursor data for an item (e.g. (u) => ({ id: u.id })).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
item |
T |
Returns
Section titled “Returns”TCursor