Skip to content

Interface: Page<T>

Defined in: src/testing/pagination.ts:17

Note: real servers reject a non-positive or non-numeric limit (Lemmy 400s with invalid_fetch_limit) and a corrupt cursor. These helpers degrade to an empty page / offset 0 instead — never to a cursor that fails to advance, so a consumer's paging loop can't spin forever.

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
itemsT[]-src/testing/pagination.ts:18
nextPage?stringWire next_page value; absent when the last page was servedsrc/testing/pagination.ts:20