The list entry shape of the paginated endpoint.
Callback that fetches a single page given its 1-based number, perPage, and an optional AbortSignal forwarded from the traversal; return the raw MAL list response ({ data, paging? }).
Optionaloptions: MalPaginateOptions
Optional perPage, startPage, maxPages, concurrency, signal, onPage, and onHookError controls.
The collected items, per-page snapshots, page count, and whether the maxPages guard truncated the run.
An AniLinkValidationError when a fetched page response has no data key at all (a closure returning the wrong object); a present non-array value collects nothing.
Collect items from MyAnimeList list pages until the list ends or the
maxPageslimit is reached.The helper calls
fetchPage(page, perPage, signal)for each page. The callback maps the page number to endpoint parameters withoffset = (page - 1) * perPage. A response with apagingnode and nonextURL ends traversal, even if the page is full. Without apagingnode, a short page ends traversal. ThemaxPageslimit bounds requests. Like AniList'spaginate, this helper uses the shared engine.