Skip to main content

AggregatedRow

@webda/models


Type Alias: AggregatedRow<T, G, M>

AggregatedRow<T, G, M> = { [K in G[number]]: (K extends PropertyPaths<T> ? RowValue<PropertyPathType<T, K>> : unknown) | null } & { [A in keyof M]: MetricValue<T, M[A]> }

Defined in: packages/models/src/aggregation.ts:55

One aggregated row: group paths keep their attribute type (or null), aliases their metric type; Date attributes are ISO strings

Type Parameters​

T​

T extends object

G​

G extends readonly string[]

M​

M