Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/table/custom/implementation/base.ts>TableContext

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class TableContext
implements [TableBase.Context]<UR, UC, Tp>
import { TableContext } from "https://deno.land/x/rimbu@1.0.0/table/custom/implementation/base.ts";

Constructors

new
TableContext(
typeTag: N,
rowContext: WithRow<Tp, UR, UC, any>["rowContext"],
columnContext: WithRow<Tp, UR, UC, any>["columnContext"],
)

Type Parameters

UR
UC
N extends string
optional
Tp extends ContextImplTypes = ContextImplTypes

Properties

readonly
_empty
readonly
_fixedKeys: readonly [UR, UC]
readonly
_types: Tp
readonly
builder: <R extends UR, C extends UC, V>() => WithRow<Tp, R, C, V>["builder"]
readonly
empty: <R extends UR, C extends UC, V>() => WithRow<Tp, R, C, V>["normal"]
readonly
from: any
readonly
of: any
readonly
reducer: <R extends UR, C extends UC, V>(source?: StreamSource<readonly [R, C, V]>) => Reducer<[R, C, V], WithRow<Tp, R, C, V>["normal"]>

Methods

createBuilder<R extends UR, C extends UC, V>(source?: Table.NonEmpty<R, C, V>): WithRow<Tp, R, C, V>["builder"]
createNonEmpty<R extends UR, C extends UC, V>(rowMap: WithRow<Tp, R, C, V>["rowMapNonEmpty"], size: number): WithRow<Tp, R, C, V>["nonEmpty"]
isNonEmptyInstance<R, C, V>(source: any): source is WithRow<Tp, R, C, V>["nonEmpty"]