For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10 (unreleased)

Function: nextPageRequest()

function nextPageRequest<TItem, TBody>(body, response, mode?): TBody | null;

Compute the next request body from the previous body + response, or null when no further page exists. Pure — the async generator is built on top of it.

Type Parameters​

TItem​

TItem

TBody​

TBody extends SearchBody

Parameters​

body​

TBody

response​

SearchResponse<TItem>

mode?​

PaginationMode = 'auto'

Returns​

TBody | null