Skip to content

Commit c2bba8f

Browse files
committed
Use PropertyOf<T> in aggregate.base() signature
1 parent 0a2ade0 commit c2bba8f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/collections/aggregate/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,7 @@ class AggregateManager<T> implements Aggregate<T> {
450450
return new Aggregator(this.connection);
451451
}
452452

453-
base(
454-
metrics?: PropertiesMetrics<T>,
455-
filters?: FilterValue,
456-
groupBy?: (keyof T & string) | GroupByAggregate<T> | string
457-
) {
453+
base(metrics?: PropertiesMetrics<T>, filters?: FilterValue, groupBy?: PropertyOf<T> | GroupByAggregate<T>) {
458454
let fields = 'meta { count }';
459455
let builder = this.query().withClassName(this.name);
460456
if (metrics) {

0 commit comments

Comments
 (0)