OptionalonOptional: called once before the first fetch starts
OptionalonOptional: called once after all pages have been fetched
OptionalonOptional: called after each page is fetched. Awaited, so it can apply backpressure
OptionalmaxOptional: maximum number of pages to fetch (safety limit)
OptionalmaxOptional: stop once this many items have been collected. The last page is truncated
OptionalstopOptional: return true to stop after the current page (checked after isLastPage)
OptionalmapOptional: transform each item. index is its zero-based position across all pages
OptionalfilterOptional: keep only the items for which this returns true
OptionaldedupeOptional: drop items whose key was already seen on this or a previous page
OptionaldelayOptional: milliseconds to wait between each page fetch
OptionalretryOptional: retry failed page fetches
OptionalsignalOptional: signal to abort pagination early and return partial results
Options shared by every helper: lifecycle callbacks, stop conditions, per-item transforms, pacing, retries and cancellation.
TItemis whatgetItemsreturns;TOutis what ends up in the result, which differs only whenmapItemis provided.