AggregateResult
The result of the aggregate operation where the keys are the field name used for the calculation and the values are an object with the aggregate function name and a resulting value.
const result = <AggregateResult>{
"unitPrice": { "sum": 53, "count": 2 },
"unitsInStock": { "sum": 66, "count": 3 }
};
console.log(result["unitPrice"].sum); //53