refactor(core): Forbid raw enums (no-changelog)

This commit is contained in:
Michael Kret
2023-04-21 14:23:15 +03:00
committed by GitHub
parent da31925083
commit 0e93fe064e
39 changed files with 119 additions and 115 deletions

View File

@@ -29,16 +29,17 @@ type Aggregation = {
type Aggregations = Aggregation[];
enum AggregationDisplayNames {
append = 'appended_',
average = 'average_',
concatenate = 'concatenated_',
count = 'count_',
countUnique = 'unique_count_',
max = 'max_',
min = 'min_',
sum = 'sum_',
}
// eslint-disable-next-line no-restricted-syntax
const AggregationDisplayNames = {
append: 'appended_',
average: 'average_',
concatenate: 'concatenated_',
count: 'count_',
countUnique: 'unique_count_',
max: 'max_',
min: 'min_',
sum: 'sum_',
};
const NUMERICAL_AGGREGATIONS = ['average', 'max', 'min', 'sum'];