UNPKG

@rimbu/table

Version:

Immutable spreadsheet-like data structures containing row keys, column keys, and cell values

21 lines 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HashTableHashColumn = void 0; var tslib_1 = require("tslib"); var map_1 = require("@rimbu/hashed/map"); var custom_1 = require("@rimbu/table/custom"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.TableContext('HashTableHashColumn', (_a = options === null || options === void 0 ? void 0 : options.rowContext) !== null && _a !== void 0 ? _a : map_1.HashMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.columnContext) !== null && _b !== void 0 ? _b : map_1.HashMap.defaultContext())); } var _defaultContext = createContext(); /** * The default `HashTableHashColumn` creators and context. * * Use this exported value to create and work with immutable `HashTableHashColumn` instances. * See the [HashTableHashColumn API documentation](https://rimbu.org/api/rimbu/table/hash-row/HashTableHashColumn/interface). */ exports.HashTableHashColumn = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=interface.cjs.map