Skip to content

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 Parameter Default type
TCursor Record<string, unknown>
cursor: TCursor | null;

Defined in: pagination.ts:43


direction: CursorDirection;

Defined in: pagination.ts:44


limit: number;

Defined in: pagination.ts:42