Types - Table
API reference for ./evaluate/table on @huukhanhnguyen/types.
See the Guide for the package's role.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
ColumnMeta
type
Evaluated table — what evaluateTableChain produces. The authoring tables[] lane (TableChain) stays in the model document schema.
type ColumnMeta
// = {
key: string;
label?: string;
type?: string;
format?: string;
/** True when header `value` expression is set (computed column). */
computed?: boolean;
}TableSheet
type
One named sheet of string cells — the interchange shape xlsx/csv writers take. Distinct from TableValue (typed columns + object rows). Not a file-format option record.
type TableSheet
// = {
name: string;
columns: string[];
rows: string[][];
}TableValue
type
type TableValue
// = {
columns: ColumnMeta[];
rows: Record<string, unknown>[];
}