Skip to content

Commit

Permalink
Use PropertyOf<T> in aggregate.base() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Jan 13, 2025
1 parent 0a2ade0 commit c2bba8f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/collections/aggregate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,7 @@ class AggregateManager<T> implements Aggregate<T> {
return new Aggregator(this.connection);
}

base(
metrics?: PropertiesMetrics<T>,
filters?: FilterValue,
groupBy?: (keyof T & string) | GroupByAggregate<T> | string
) {
base(metrics?: PropertiesMetrics<T>, filters?: FilterValue, groupBy?: PropertyOf<T> | GroupByAggregate<T>) {
let fields = 'meta { count }';
let builder = this.query().withClassName(this.name);
if (metrics) {
Expand Down

0 comments on commit c2bba8f

Please sign in to comment.