Features API Reference

AggregationFnDef

Interface: AggregationFnDef<TFeatures, TData, TValue, TResult>

Defined in: features/aggregation/aggregationFeature.types.ts:54

A context-based aggregation definition and optional grouped-result merge.

Type Parameters

TFeatures

TFeatures extends TableFeatures = any

TData

TData extends RowData = any

TValue

TValue = unknown

TResult

TResult = unknown

Properties

aggregate()

ts
aggregate: (context) => TResult;

Defined in: features/aggregation/aggregationFeature.types.ts:61

Computes a result directly from normalized terminal rows.

Parameters

context

AggregationContext<TFeatures, TData, TValue>

Returns

TResult


merge()?

ts
optional merge: (context) => TResult;

Defined in: features/aggregation/aggregationFeature.types.ts:66

Combines already-computed immediate child-group results. When omitted, nested grouping falls back to aggregate over the group's terminal rows.

Parameters

context

AggregationMergeContext<TFeatures, TData, TValue, TResult>

Returns

TResult