@rimbu/multimap
Version:
An immutable Map where each key can have multiple values
21 lines • 1.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SortedMultiMapSortedValue = void 0;
var tslib_1 = require("tslib");
var sorted_1 = require("@rimbu/sorted");
var custom_1 = require("@rimbu/multimap/custom");
function createContext(options) {
var _a, _b;
return Object.freeze(new custom_1.MultiMapContext('SortedMultiMapSortedValue', (_a = options === null || options === void 0 ? void 0 : options.keyMapContext) !== null && _a !== void 0 ? _a : sorted_1.SortedMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.keyMapValuesContext) !== null && _b !== void 0 ? _b : sorted_1.SortedSet.defaultContext()));
}
var _defaultContext = createContext();
/**
* The default `SortedMultiMapSortedValue` creators and context.
*
* Use this exported value to create and work with immutable `SortedMultiMapSortedValue` instances.
* See the [MultiMap documentation](https://rimbu.org/docs/collections/multimap) and the [SortedMultiMapSortedValue API documentation](https://rimbu.org/api/rimbu/multimap/SortedMultiMapSortedValue/interface).
*/
exports.SortedMultiMapSortedValue = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () {
return _defaultContext;
} }));
//# sourceMappingURL=interface.cjs.map