UNPKG

ravendb

Version:
28 lines 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractCommonApiForIndexes = void 0; class AbstractCommonApiForIndexes { additionalSources; additionalAssemblies; configuration; constructor() { this.configuration = {}; } /** * Gets a value indicating whether this instance is map reduce index definition */ get isMapReduce() { return false; } /** * Generates index name from type name replacing all _ with / */ getIndexName() { return AbstractCommonApiForIndexes.getIndexNameForCtor(this.constructor.name); } static getIndexNameForCtor(indexCtorName) { return indexCtorName.replace(/_/g, "/"); } } exports.AbstractCommonApiForIndexes = AbstractCommonApiForIndexes; //# sourceMappingURL=AbstractCommonApiForIndexes.js.map