Skip to main content

MetricValue

@webda/models


Type Alias: MetricValue<T, S>

MetricValue<T, S> = S extends { count: any; } | { countDistinct: any; } | { sum: any; } ? number : S extends object ? number | null : S extends { min: infer P; } | { max: infer P; } ? P extends PropertyPaths<T> ? RowValue<PropertyPathType<T, P>> | null : unknown : never

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

Type of the value computed by a metric

Type Parameters​

T​

T extends object

S​

S