UNPKG

@rimbu/table

Version:

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

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