Type alias AggregateResult<T, M>
AggregateResult<T, M>: { properties: T extends undefined ? Record<string, AggregateType> : M extends MetricsInput<keyof T & string>[] ? { [K in M[number] as K["propertyName"]]: KindToAggregateType<K["kind"]> } : M extends MetricsInput<keyof T & string> ? { [K in M as K["propertyName"]]: KindToAggregateType<K["kind"]> } : undefined; totalCount: number; } Type declaration
properties: T extends undefined
? Record<string, AggregateType>
: M extends MetricsInput<keyof T & string>[]
? {
[K in M[number] as K["propertyName"]]: KindToAggregateType<K["kind"]>
}
: M extends MetricsInput<keyof T & string>
? {
[K in M as K["propertyName"]]: KindToAggregateType<K["kind"]>
}
: undefined
totalCount: number