import { createPromise } from "../utilities"; import { AggregateQueryable } from "./AggregateQueryable"; export class AggregateQueryableAsync extends AggregateQueryable { minAsync(): Promise { return createPromise(w => this.min(w)); } maxAsync() { return createPromise(w => this.max(w)); } sumAsync() { return createPromise(w => this.sum(w)); } countAsync() { return createPromise(w => this.count(w)); } distinctAsync() { return createPromise(w => this.distinct(w)); } }