UNPKG

@rimbu/table

Version:

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

22 lines 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HashTableSortedColumn = void 0; var tslib_1 = require("tslib"); var map_1 = require("@rimbu/hashed/map"); var map_2 = require("@rimbu/sorted/map"); var custom_1 = require("@rimbu/table/custom"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.TableContext('HashTableSortedColumn', (_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_2.SortedMap.defaultContext())); } var _defaultContext = createContext(); /** * The default `HashTableSortedColumn` creators and context. * * Use this exported value to create and work with immutable `HashTableSortedColumn` instances. * See the [HashTableSortedColumn API documentation](https://rimbu.org/api/rimbu/table/hash-row/HashTableSortedColumn/interface). */ exports.HashTableSortedColumn = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=interface.cjs.map