bothy-sdk
    Preparing search index...

    Function pageItems

    • Yields every item of every page of a list.

      Type Parameters

      • T
      • C = string

      Parameters

      • fetchPage: PageFetcher<CursorPage<C> & { items: readonly T[] }, C>

        Fetches one page with an items array.

      • options: { cursor?: C } = {}

        cursor to start at a known cursor.

      Returns AsyncGenerator<T, void, undefined>

      An async iterator over the items.