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

    Function collectionPage_wrap

    • Wraps one page of a chrisapi collection resource as a typed ListPage.

      The collection carries the pagination signals (totalCount, hasNextPage) as typed getters; the caller extracts the rows in whatever shape it needs (data records or item resources) and passes both here.

      Type Parameters

      • T

      Parameters

      • collection: { hasNextPage: boolean; totalCount: number }

        The chrisapi list resource the page came from.

      • rows: T[]

        The page's rows, already extracted by the caller.

      Returns ListPage<T>

      The typed page; totalCount is null when the server sent none.