UNPKG

@rimbu/table

Version:

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

20 lines 863 B
import { SortedMap } from '@rimbu/sorted/map'; import { TableContext, } from '@rimbu/table/custom'; function createContext(options) { return Object.freeze(new TableContext('SortedTableSortedColumn', options?.rowContext ?? SortedMap.defaultContext(), options?.columnContext ?? SortedMap.defaultContext())); } const _defaultContext = createContext(); /** * The default `SortedTableSortedColumn` creators and context. * * Use this exported value to create and work with immutable `SortedTableSortedColumn` instances. * See the [SortedTableSortedColumn API documentation](https://rimbu.org/api/rimbu/table/sorted-row/SortedTableSortedColumn/interface). */ export const SortedTableSortedColumn = Object.freeze({ ..._defaultContext, createContext, defaultContext() { return _defaultContext; }, }); //# sourceMappingURL=interface.mjs.map