@mywebapi.com/sdk - v0.1.0
    Preparing search index...

    Function collectAll

    • Collect all pages into a single array by exhausting the async iterable.

      ! Memory-bounded only by total result size — prefer the async iterable (paginate) for large collections to process pages one at a time without accumulating the full dataset in memory.

      Type Parameters

      • T

      Parameters

      • fetchPage: (cursor: string | undefined) => Promise<PagedResult<T>>

      Returns Promise<T[]>