pond-ts API Reference (core)
    Preparing search index...

    Type Alias CustomAggregateReducer

    CustomAggregateReducer: (
        values: ReadonlyArray<ColumnValue | undefined>,
    ) => ColumnValue | undefined

    Custom aggregate reducers receive every value in a bucket (including undefined) and return a single result. The return type is widened to ColumnValue so reducers may emit an array — the resulting column's schema kind is inferred as 'array' when the custom reducer output is declared via AggregateOutputSpec.kind.

    Type Declaration