UNPKG

@rimbu/table

Version:

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

20 lines 831 B
import { HashMap } from '@rimbu/hashed/map'; import { TableContext, } from '@rimbu/table/custom'; function createContext(options) { return Object.freeze(new TableContext('HashTableHashColumn', options?.rowContext ?? HashMap.defaultContext(), options?.columnContext ?? HashMap.defaultContext())); } const _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). */ export const HashTableHashColumn = Object.freeze({ ..._defaultContext, createContext, defaultContext() { return _defaultContext; }, }); //# sourceMappingURL=interface.mjs.map