UNPKG

@configurator/ravendb

Version:
32 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IndexingMapReduceFormatter = exports.IndexingReduceResults = exports.IndexingGroupResults = exports.StubMapUtils = void 0; class StubMapUtils { } exports.StubMapUtils = StubMapUtils; class IndexingGroupResults { groupBy(selector) { return new IndexingReduceResults(selector); } } exports.IndexingGroupResults = IndexingGroupResults; class IndexingReduceResults { constructor(selector) { this._group = selector; } aggregate(reducer) { return new IndexingMapReduceFormatter(this._group, reducer); } } exports.IndexingReduceResults = IndexingReduceResults; class IndexingMapReduceFormatter { constructor(groupBy, aggregate) { this._groupBy = groupBy; this._aggregate = aggregate; } format() { return `groupBy(${this._groupBy}).aggregate(${this._aggregate})`; } } exports.IndexingMapReduceFormatter = IndexingMapReduceFormatter; //# sourceMappingURL=StronglyTyped.js.map