@s2-dev/streamstore - v0.22.0
    Preparing search index...

    Type Alias PageFetcher<TItem, TArgs>

    PageFetcher: (
        args: TArgs & { startAfter?: string },
    ) => Promise<{ hasMore: boolean; items: TItem[] }>

    A function that fetches a single page of results.

    Type Parameters

    • TItem

      The type of items in the page

    • TArgs

      The query arguments type (excluding startAfter)

    Type Declaration

      • (
            args: TArgs & { startAfter?: string },
        ): Promise<{ hasMore: boolean; items: TItem[] }>
      • Parameters

        • args: TArgs & { startAfter?: string }

        Returns Promise<{ hasMore: boolean; items: TItem[] }>