UNPKG

@rimbu/table

Version:

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

15 lines 947 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SortedTableSortedColumn = void 0; var tslib_1 = require("tslib"); var map_1 = require("@rimbu/sorted/map"); var custom_1 = require("@rimbu/table/custom"); function createContext(options) { var _a, _b; return Object.freeze(new custom_1.TableContext('SortedTableSortedColumn', (_a = options === null || options === void 0 ? void 0 : options.rowContext) !== null && _a !== void 0 ? _a : map_1.SortedMap.defaultContext(), (_b = options === null || options === void 0 ? void 0 : options.columnContext) !== null && _b !== void 0 ? _b : map_1.SortedMap.defaultContext())); } var _defaultContext = createContext(); exports.SortedTableSortedColumn = Object.freeze(tslib_1.__assign(tslib_1.__assign({}, _defaultContext), { createContext: createContext, defaultContext: function () { return _defaultContext; } })); //# sourceMappingURL=interface.cjs.map