infinity-fetch - v1.5.0
    Preparing search index...

    Type Alias StreamConfig<TConfig>

    StreamConfig: Omit<TConfig, "onEnd"> & {
        onEnd?: (summary: InfinityFetchSummary) => unknown;
    }

    Turns a buffered config into its streaming counterpart: everything stays the same except onEnd, which receives a summary instead of the collected items.

    Type Parameters

    • TConfig

    Type Declaration

    • OptionalonEnd?: (summary: InfinityFetchSummary) => unknown

      Optional: called once after the last page, or after the consumer stops iterating