mise API - v0.0.0
    Preparing search index...

    Function listPages_drain

    • Drains every page of a paginated CUBE list into one array.

      Convenience over listPages_walk for callers that need the complete collection and nothing per-page. The single-shot { limit: 1000 } idiom this replaces silently truncated collections past its guess; the drain walks to the actual end.

      Type Parameters

      • T

      Parameters

      • page_fetch: (offset: number, limit: number) => Promise<ListPage<T>>

        Fetches one page at the given offset and limit.

      • options: PageWalkOptions = {}

        Page size and resume position. See PageWalkOptions.

      Returns Promise<T[]>

      Every row of the collection, in server order.