PaginatorCursorOptions
type PaginatorCursorOptions<T, TCursor> = object;Defined in: pagination.ts:104
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
TCursor extends Record<string, unknown> |
Properties
Section titled “Properties”codec?
Section titled “codec?”codec?: CursorCodecMaybeAsync<TCursor>;Defined in: pagination.ts:108
Token codec, possibly with async stages.
fromItem
Section titled “fromItem”fromItem: (item) => TCursor;Defined in: pagination.ts:106
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