mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 03:15:24 +00:00
feat: add AggregationValue type and improve type safety in aggregation filtering
This commit is contained in:
@@ -56,6 +56,8 @@ const AllAggregations = {
|
||||
...DateAggregations,
|
||||
};
|
||||
|
||||
type AggregationValue = typeof AllAggregations[keyof typeof AllAggregations]
|
||||
|
||||
const getAvailableAggregations = (type: string, parsed_tree?): string[] => {
|
||||
let returnAggregations = [];
|
||||
if (type === UITypes.Formula && parsed_tree?.dataType) {
|
||||
@@ -235,4 +237,5 @@ export {
|
||||
AttachmentAggregations,
|
||||
AllAggregations,
|
||||
formatAggregation,
|
||||
AggregationValue,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user