Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AggregationSpec<T, R, K, V>

Specification for the aggregation to be performed.

Type parameters

  • T: Record<keyof any, any>

  • R: any

  • K

  • V

Hierarchy

  • AggregationSpec

Index

Properties

Optional compare

compare?: SortFn<K>

Comparision function for the keys. Defaults to naturalCMP.

Optional key

key?: keyof T | KeyFn<T, K>

Function to extract the aggregation key, or the name of a field. Defaults to the identity function.

merge

merge: MergeFn<K, V, R>

The merge function. Accepts the current merge key, and returs a Merge object

Optional value

value?: keyof T | ValueFn<T, V>

Extract the values to be merged (passed to the Merge object). Defaults to the identity function.

Generated using TypeDoc