CursorWindow
type CursorWindow<TCursor> = object;Defined in: pagination.ts:41
Normalized window handed to fetchCursor. limit already includes the
one-row lookahead. cursor is the decoded cursor data (null for the
first page). When direction is "backward" the fetcher must flip its
sort order; the paginator restores natural order afterwards.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TCursor |
Record<string, unknown> |
Properties
Section titled “Properties”cursor
Section titled “cursor”cursor: TCursor | null;Defined in: pagination.ts:43
direction
Section titled “direction”direction: CursorDirection;Defined in: pagination.ts:44
limit: number;Defined in: pagination.ts:42