UNPKG

@rimbu/bimap

Version:

A bidirectional immutable Map of keys and values for TypeScript

15 lines 892 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BiMap = void 0; var tslib_1 = require("tslib"); var custom_1 = require("@rimbu/bimap/custom"); var hashed_1 = require("@rimbu/hashed"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.BiMapContext((_a = options === null || options === void 0 ? void 0 : options.keyValueContext) !== null && _a !== void 0 ? _a : hashed_1.HashMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.valueKeyContext) !== null && _b !== void 0 ? _b : hashed_1.HashMap.defaultContext())); } var _defaultContext = createContext(); exports.BiMap = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=interface.cjs.map